winex11.drv: Copy the GL extensions string because it may be freed.
This commit is contained in:
parent
85410f2ac1
commit
a790ff5568
|
@ -305,7 +305,7 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
|
|||
}
|
||||
|
||||
WineGLInfo.glVersion = (const char *) pglGetString(GL_VERSION);
|
||||
WineGLInfo.glExtensions = (const char *) pglGetString(GL_EXTENSIONS);
|
||||
WineGLInfo.glExtensions = strdup((const char *) pglGetString(GL_EXTENSIONS));
|
||||
|
||||
/* Get the common GLX version supported by GLX client and server ( major/minor) */
|
||||
pglXQueryVersion(gdi_display, &WineGLInfo.glxVersion[0], &WineGLInfo.glxVersion[1]);
|
||||
|
|
Loading…
Reference in New Issue