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
aa95df0d
Commit
aa95df0d
authored
Jul 11, 2003
by
Lionel Ulmer
Committed by
Alexandre Julliard
Jul 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check if 'GLX_ARB_get_proc_address' is supported before using
glXGetProcAddressARB.
parent
64852f4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
wgl.c
dlls/opengl32/wgl.c
+9
-5
No files found.
dlls/opengl32/wgl.c
View file @
aa95df0d
...
...
@@ -624,7 +624,8 @@ static BOOL process_attach(void)
Window
root
=
(
Window
)
GetPropA
(
GetDesktopWindow
(),
"__wine_x11_whole_window"
);
HMODULE
mod
=
GetModuleHandleA
(
"x11drv.dll"
);
void
*
opengl_handle
;
const
char
*
extensions
=
NULL
;
if
(
!
root
||
!
mod
)
{
ERR
(
"X11DRV not loaded. Cannot create default context.
\n
"
);
...
...
@@ -665,13 +666,16 @@ static BOOL process_attach(void)
vis
=
XGetVisualInfo
(
default_display
,
VisualIDMask
,
&
template
,
&
num
);
if
(
vis
!=
NULL
)
default_cx
=
glXCreateContext
(
default_display
,
vis
,
0
,
GL_TRUE
);
if
(
default_cx
!=
NULL
)
glXMakeCurrent
(
default_display
,
root
,
default_cx
);
extensions
=
glXQueryExtensionsString
(
default_display
,
DefaultScreen
(
default_display
));
XFree
(
vis
);
LEAVE_GL
();
opengl_handle
=
wine_dlopen
(
SONAME_LIBGL
,
RTLD_NOW
|
RTLD_GLOBAL
,
NULL
,
0
);
if
(
opengl_handle
!=
NULL
)
{
p_glXGetProcAddressARB
=
wine_dlsym
(
opengl_handle
,
"glXGetProcAddressARB"
,
NULL
,
0
);
wine_dlclose
(
opengl_handle
,
NULL
,
0
);
if
((
extensions
!=
NULL
)
&&
(
strstr
(
extensions
,
"GLX_ARB_get_proc_address"
)))
{
opengl_handle
=
wine_dlopen
(
SONAME_LIBGL
,
RTLD_NOW
|
RTLD_GLOBAL
,
NULL
,
0
);
if
(
opengl_handle
!=
NULL
)
{
p_glXGetProcAddressARB
=
wine_dlsym
(
opengl_handle
,
"glXGetProcAddressARB"
,
NULL
,
0
);
wine_dlclose
(
opengl_handle
,
NULL
,
0
);
}
}
if
(
default_cx
==
NULL
)
{
...
...
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