Commit 093a034f authored by H. Verbeet's avatar H. Verbeet Committed by Alexandre Julliard

wined3d: In IWineD3DImpl_FillGLCaps use glGetString instead of

glXGetClientString to retrieve the OpenGL vendor.
parent 8430d43d
...@@ -234,11 +234,11 @@ static BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info, Display* display) ...@@ -234,11 +234,11 @@ static BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info, Display* display)
if (NULL != display) { if (NULL != display) {
test = glXQueryVersion(display, &major, &minor); test = glXQueryVersion(display, &major, &minor);
gl_info->glx_version = ((major & 0x0000FFFF) << 16) | (minor & 0x0000FFFF); gl_info->glx_version = ((major & 0x0000FFFF) << 16) | (minor & 0x0000FFFF);
gl_string = glXGetClientString(display, GLX_VENDOR);
} else { } else {
FIXME("Display must not be NULL, use glXGetCurrentDisplay or getAdapterDisplay()\n"); FIXME("Display must not be NULL, use glXGetCurrentDisplay or getAdapterDisplay()\n");
gl_string = (const char *) glGetString(GL_VENDOR);
} }
gl_string = (const char *) glGetString(GL_VENDOR);
TRACE_(d3d_caps)("Filling vendor string %s\n", gl_string); TRACE_(d3d_caps)("Filling vendor string %s\n", gl_string);
if (gl_string != NULL) { if (gl_string != NULL) {
/* Fill in the GL vendor */ /* Fill in the GL vendor */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment