From: Kristian Høgsberg Date: Sat, 15 Mar 2008 18:06:42 +0000 (-0400) Subject: Test createNewScreen for NULL, not createNewScreenName in driCreateScreen(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=98e13fecd0cb5c13dab0ead424b0f94f318e5a0b;p=mesa.git Test createNewScreen for NULL, not createNewScreenName in driCreateScreen(). --- 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;