wined3d: Avoid crashing when renderer returns no name.

This commit is contained in:
Paul Chitescu 2006-09-12 22:21:14 +03:00 committed by Alexandre Julliard
parent bfc1b5c15f
commit f2aee453f1
1 changed files with 2 additions and 0 deletions

View File

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