Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
879da043
Commit
879da043
authored
Nov 10, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32: Hack to make sure winex11 is loaded before getting function pointers.
parent
3d73173f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
wgl.c
dlls/opengl32/wgl.c
+8
-5
No files found.
dlls/opengl32/wgl.c
View file @
879da043
...
...
@@ -621,19 +621,22 @@ void internal_glGetIntegerv(GLenum pname, GLint* params) {
creating a rendering context.... */
static
BOOL
process_attach
(
void
)
{
HMODULE
mod
=
GetModuleHandleA
(
"winex11.drv"
);
HMODULE
mod_gdi32
=
GetModuleHandleA
(
"gdi32.dll"
);
HMODULE
mod_x11
,
mod_gdi32
;
DWORD
size
=
sizeof
(
internal_gl_disabled_extensions
);
HKEY
hkey
=
0
;
if
(
!
mod
||
!
mod_gdi32
)
GetDesktopWindow
();
/* make sure winex11 is loaded (FIXME) */
mod_x11
=
GetModuleHandleA
(
"winex11.drv"
);
mod_gdi32
=
GetModuleHandleA
(
"gdi32.dll"
);
if
(
!
mod_x11
||
!
mod_gdi32
)
{
ERR
(
"X11DRV or GDI32 not loaded. Cannot create default context.
\n
"
);
return
FALSE
;
}
wine_tsx11_lock_ptr
=
(
void
*
)
GetProcAddress
(
mod
,
"wine_tsx11_lock"
);
wine_tsx11_unlock_ptr
=
(
void
*
)
GetProcAddress
(
mod
,
"wine_tsx11_unlock"
);
wine_tsx11_lock_ptr
=
(
void
*
)
GetProcAddress
(
mod
_x11
,
"wine_tsx11_lock"
);
wine_tsx11_unlock_ptr
=
(
void
*
)
GetProcAddress
(
mod
_x11
,
"wine_tsx11_unlock"
);
wine_wgl
.
p_wglGetProcAddress
=
(
void
*
)
GetProcAddress
(
mod_gdi32
,
"wglGetProcAddress"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment