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
22a24704
Commit
22a24704
authored
Mar 11, 2010
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Mar 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wgl: Add more OpenGL diagnosing checks.
parent
c7b45aa8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
opengl.c
dlls/winex11.drv/opengl.c
+15
-0
No files found.
dlls/winex11.drv/opengl.c
View file @
22a24704
...
...
@@ -375,6 +375,21 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
if
(
!
getsockname
(
fd
,
(
struct
sockaddr
*
)
&
uaddr
,
&
uaddrlen
)
&&
uaddr
.
sun_family
==
AF_UNIX
)
ERR_
(
winediag
)(
"Direct rendering is disabled, most likely your OpenGL drivers haven't been installed correctly
\n
"
);
}
else
{
/* In general you would expect that if direct rendering is returned, that you receive hardware
* accelerated OpenGL rendering. The definition of direct rendering is that rendering is performed
* client side without sending all GL commands to X using the GLX protocol. When Mesa falls back to
* software rendering, it shows direct rendering.
*
* Depending on the cause of software rendering a different rendering string is shown. In case Mesa fails
* to load a DRI module 'Software Rasterizer' is returned. When Mesa is compiled as a OpenGL reference driver
* it shows 'Mesa X11'.
*/
const
char
*
gl_renderer
=
(
const
char
*
)
pglGetString
(
GL_RENDERER
);
if
(
!
strcmp
(
gl_renderer
,
"Software Rasterizer"
)
||
!
strcmp
(
gl_renderer
,
"Mesa X11"
))
ERR_
(
winediag
)(
"The Mesa OpenGL driver is using software rendering, most likely your OpenGL drivers haven't been installed correctly
\n
"
);
}
if
(
vis
)
XFree
(
vis
);
if
(
ctx
)
{
...
...
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