aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin/glx/indirect.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-11-23 15:17:33 +0000
committermarha <marha@users.sourceforge.net>2009-11-23 15:17:33 +0000
commit29556eae54fc97f382b8d690dfc3a47a742800dc (patch)
tree82de351a01819424682d085579d064137459024b /xorg-server/hw/xwin/glx/indirect.c
parentf01ad2c4e088fea9f3b6d918d910d7fd17519ade (diff)
downloadvcxsrv-29556eae54fc97f382b8d690dfc3a47a742800dc.tar.gz
vcxsrv-29556eae54fc97f382b8d690dfc3a47a742800dc.tar.bz2
vcxsrv-29556eae54fc97f382b8d690dfc3a47a742800dc.zip
Solved crash when no wgl extensions.
Diffstat (limited to 'xorg-server/hw/xwin/glx/indirect.c')
-rw-r--r--xorg-server/hw/xwin/glx/indirect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xorg-server/hw/xwin/glx/indirect.c b/xorg-server/hw/xwin/glx/indirect.c
index 05e951e0a..27c815dc8 100644
--- a/xorg-server/hw/xwin/glx/indirect.c
+++ b/xorg-server/hw/xwin/glx/indirect.c
@@ -525,6 +525,8 @@ glxWinScreenProbe(ScreenPtr pScreen)
gl_extensions = (const char *)glGetStringWrapperNonstatic(GL_EXTENSIONS);
ErrorF("GL_EXTENSIONS: %s\n", gl_extensions);
wgl_extensions = wglGetExtensionsStringARBWrapper(hdc);
+ if (!wgl_extensions)
+ wgl_extensions="";
ErrorF("WGL_EXTENSIONS:%s\n", wgl_extensions);
// Can you see the problem here? The extensions string is DC specific