Don't dereference a NULL visual pointer.

This commit is contained in:
Saulius Krasuckas 2005-08-22 09:22:19 +00:00 committed by Alexandre Julliard
parent ec48726f0c
commit 187f7a4a4f
1 changed files with 1 additions and 0 deletions

View File

@ -492,6 +492,7 @@ XVisualInfo *X11DRV_setup_opengl_visual( Display *display )
if (visual == NULL) {
/* This should only happen if we cannot find a match with a depth size 16 */
FIXME("Failed to find a suitable visual\n");
return visual;
}
}
TRACE("Visual ID %lx Chosen\n",visual->visualid);