From 98e13fecd0cb5c13dab0ead424b0f94f318e5a0b Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Sat, 15 Mar 2008 14:06:42 -0400 Subject: Test createNewScreen for NULL, not createNewScreenName in driCreateScreen(). --- src/glx/x11/dri_glx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/glx/x11/dri_glx.c b/src/glx/x11/dri_glx.c index 2e3ab06dce0..514c082f6cd 100644 --- a/src/glx/x11/dri_glx.c +++ b/src/glx/x11/dri_glx.c @@ -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; -- cgit v1.2.3