Commit a790ff55 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winex11.drv: Copy the GL extensions string because it may be freed.

parent 85410f2a
......@@ -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]);
......
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