mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
wgl: Add more OpenGL diagnosing checks.
This commit is contained in:
parent
c7b45aa8d3
commit
22a247047d
1 changed files with 15 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue