Test createNewScreen for NULL, not createNewScreenName in driCreateScreen().
authorKristian Høgsberg <krh@redhat.com>
Sat, 15 Mar 2008 18:06:42 +0000 (14:06 -0400)
committerKristian Høgsberg <krh@redhat.com>
Sat, 15 Mar 2008 18:06:42 +0000 (14:06 -0400)
src/glx/x11/dri_glx.c

index 2e3ab06dce0e96539af63a4add1f1c3036f375e6..514c082f6cd1398d2fae284e7c2dc9124f7c64e7 100644 (file)
@@ -818,7 +818,7 @@ static __GLXDRIscreen *driCreateScreen(__GLXscreenConfigs *psc, int screen,
 
     psc->driver = driGetDriver(priv->dpy, screen);
     createNewScreen = dlsym(psc->driver, createNewScreenName);
-    if (createNewScreenName == NULL)
+    if (createNewScreen == NULL)
        return NULL;
 
     pdp = (__GLXDRIdisplayPrivate *) priv->driDisplay;