diff options
author | dawes <dawes> | 2001-03-30 17:03:54 +0000 |
---|---|---|
committer | dawes <dawes> | 2001-03-30 17:03:54 +0000 |
commit | 4402914482a1256788d74ac3105a0f1b735f9d4d (patch) | |
tree | e461fbab2e1d83811d424834eca4365b3f685961 /xc/lib/GL/glx/glxext.c | |
parent | a655110ecd27db1fee5641ee336538615a70e029 (diff) |
Call the correct createScreen[] function rather than always calling the
first.
Diffstat (limited to 'xc/lib/GL/glx/glxext.c')
-rw-r--r-- | xc/lib/GL/glx/glxext.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/xc/lib/GL/glx/glxext.c b/xc/lib/GL/glx/glxext.c index efca0c713..141999150 100644 --- a/xc/lib/GL/glx/glxext.c +++ b/xc/lib/GL/glx/glxext.c @@ -33,8 +33,8 @@ ** published by SGI, but has not been independently verified as being ** compliant with the OpenGL(R) version 1.2.1 Specification. ** -** $Date: 2001/03/19 21:38:54 $ $Revision: 1.17 $ -** $Header: /home/ajax/dri-backup/xc/xc/lib/GL/glx/glxext.c,v 1.17 2001/03/19 21:38:54 dawes Exp $ +** $Date: 2001/03/30 17:03:54 $ $Revision: 1.18 $ +** $Header: /home/ajax/dri-backup/xc/xc/lib/GL/glx/glxext.c,v 1.18 2001/03/30 17:03:54 dawes Exp $ */ /* < @@ -450,11 +450,14 @@ static Bool AllocAndFetchScreenConfigs(Display *dpy, __GLXdisplayPrivate *priv) #ifdef GLX_DIRECT_RENDERING /* Initialize the direct rendering per screen data and functions */ - if (priv->driDisplay.private) + if (priv->driDisplay.private && + priv->driDisplay.createScreen && + priv->driDisplay.createScreen[i]) { psc->driScreen.private = - (*priv->driDisplay.createScreen)(dpy, i, &psc->driScreen, + (*(priv->driDisplay.createScreen[i]))(dpy, i, &psc->driScreen, psc->numConfigs, psc->configs); + } #endif } SyncHandle(); |