diff options
author | marha <marha@users.sourceforge.net> | 2009-11-23 15:17:33 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2009-11-23 15:17:33 +0000 |
commit | 29556eae54fc97f382b8d690dfc3a47a742800dc (patch) | |
tree | 82de351a01819424682d085579d064137459024b /xorg-server/hw/xwin/glx | |
parent | f01ad2c4e088fea9f3b6d918d910d7fd17519ade (diff) | |
download | vcxsrv-29556eae54fc97f382b8d690dfc3a47a742800dc.tar.gz vcxsrv-29556eae54fc97f382b8d690dfc3a47a742800dc.tar.bz2 vcxsrv-29556eae54fc97f382b8d690dfc3a47a742800dc.zip |
Solved crash when no wgl extensions.
Diffstat (limited to 'xorg-server/hw/xwin/glx')
-rw-r--r-- | xorg-server/hw/xwin/glx/indirect.c | 2 |
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 |