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
336f34f6
Commit
336f34f6
authored
Aug 27, 2006
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Aug 28, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl: Fix Mesa/DRI regression.
parent
d46c9e2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
wgl.c
dlls/opengl32/wgl.c
+14
-2
No files found.
dlls/opengl32/wgl.c
View file @
336f34f6
...
...
@@ -583,7 +583,7 @@ static int describeDrawable(Wine_GLContext* ctx, Drawable drawable) {
int
attribList
[
3
]
=
{
GLX_FBCONFIG_ID
,
0
,
None
};
GLXFBConfig
*
fbCfgs
;
if
(
3
>
wine_glx
.
version
||
NULL
==
wine_glx
.
p_glXQueryDrawable
)
{
if
(
wine_glx
.
p_glXQueryDrawable
==
NULL
)
{
/** glXQueryDrawable not available so returns not supported */
return
-
1
;
}
...
...
@@ -1302,6 +1302,10 @@ static void wgl_initialize_glx(Display *display, int screen, glXGetProcAddressAR
* The versioning checks below try to take into account the comments from above.
*/
TRACE
(
"Server GLX version: %s
\n
"
,
server_glx_version
);
TRACE
(
"Client GLX version: %s
\n
"
,
client_glx_version
);
TRACE
(
"Direct rendering eanbled: %s
\n
"
,
glx_direct
?
"True"
:
"False"
);
/* Based on the default opengl context we decide whether direct or indirect rendering is used.
* In case of indirect rendering we check if the GLX version of the server is 1.2 and else
* the client version is checked.
...
...
@@ -1326,7 +1330,6 @@ static void wgl_initialize_glx(Display *display, int screen, glXGetProcAddressAR
wine_glx
.
p_glXGetVisualFromFBConfig
=
proc
(
(
const
GLubyte
*
)
"glXGetVisualFromFBConfig"
);
/*wine_glx.p_glXGetFBConfigs = proc( (const GLubyte *) "glXGetFBConfigs");*/
wine_glx
.
p_glXQueryDrawable
=
proc
(
(
const
GLubyte
*
)
"glXQueryDrawable"
);
}
else
{
if
(
NULL
!=
strstr
(
glx_extensions
,
"GLX_SGIX_fbconfig"
))
{
wine_glx
.
p_glXChooseFBConfig
=
proc
(
(
const
GLubyte
*
)
"glXChooseFBConfigSGIX"
);
...
...
@@ -1336,6 +1339,15 @@ static void wgl_initialize_glx(Display *display, int screen, glXGetProcAddressAR
ERR
(
" glx_version as %s and GLX_SGIX_fbconfig extension is unsupported. Expect problems.
\n
"
,
client_glx_version
);
}
}
/* The mesa libGL client library seems to forward glXQueryDrawable to the Xserver, so only
* enable this function when the Xserver understand GLX 1.3 or newer
*/
if
(
!
strcmp
(
"1.2"
,
server_glx_version
))
wine_glx
.
p_glXQueryDrawable
=
NULL
;
else
wine_glx
.
p_glXQueryDrawable
=
proc
(
(
const
GLubyte
*
)
"glXQueryDrawable"
);
/** try anyway to retrieve that calls, maybe they works using glx client tricks */
wine_glx
.
p_glXGetFBConfigs
=
proc
(
(
const
GLubyte
*
)
"glXGetFBConfigs"
);
wine_glx
.
p_glXMakeContextCurrent
=
proc
(
(
const
GLubyte
*
)
"glXMakeContextCurrent"
);
...
...
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