blob: fe35b7c9194da0a6d06683979bc6981a6da3d012 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-al,v 1.6 2009/07/08 20:00:58 hasso Exp $
http://cgit.freedesktop.org/mesa/mesa/commit/?id=32c44fb8
--- src/glx/x11/glxcmds.c.orig 2009-07-08 21:22:47 +0300
+++ src/glx/x11/glxcmds.c 2009-07-08 21:23:31 +0300
@@ -164,7 +164,7 @@ GetGLXScreenConfigs(Display *dpy, int sc
{
__GLXdisplayPrivate * const priv = __glXInitialize(dpy);
- return (priv->screenConfigs != NULL) ? &priv->screenConfigs[scrn] : NULL;
+ return (priv && priv->screenConfigs != NULL) ? &priv->screenConfigs[scrn] : NULL;
}
|