Commit f2aee453 authored by Paul Chitescu's avatar Paul Chitescu Committed by Alexandre Julliard

wined3d: Avoid crashing when renderer returns no name.

parent bfc1b5c1
......@@ -308,6 +308,8 @@ BOOL IWineD3DImpl_FillGLCaps(IWineD3D *iface, Display* display) {
TRACE_(d3d_caps)("(%p, %p)\n", gl_info, display);
gl_string = (const char *) glGetString(GL_RENDERER);
if (NULL == gl_string)
gl_string = "None";
strcpy(gl_info->gl_renderer, gl_string);
/* Fill in the GL info retrievable depending on the display */
......
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