]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_sdl.c
make sure that gl_extensions and gl_platformextensions are not NULL
[xonotic/darkplaces.git] / vid_sdl.c
index 872f8cffe30e49b061ee73a235c937961fbcb55d..3654b4489c1e6d23cdc10826d5bc9a7318eca49b 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -742,6 +742,11 @@ int VID_InitMode(int fullscreen, int width, int height, int bpp, int refreshrate
        gl_platformextensions = "";
        gl_videosyncavailable = false;
 
+       if (!gl_extensions)
+               gl_extensions = "";
+       if (!gl_platformextensions)
+               gl_platformextensions = "";
+
        Con_DPrintf("GL_VENDOR: %s\n", gl_vendor);
        Con_DPrintf("GL_RENDERER: %s\n", gl_renderer);
        Con_DPrintf("GL_VERSION: %s\n", gl_version);