]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_sdl.c
gcc 4.0 signedness warning fixes and uninitialized vector fixes
[xonotic/darkplaces.git] / vid_sdl.c
index 295d8bca9174781c5b6f611c03af3a58f2bb2bc0..940f57df7c0f662fc25ae79f7584940c6d31aa88 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -426,10 +426,10 @@ int VID_InitMode(int fullscreen, int width, int height, int bpp)
        // enable key repeat since everyone expects it
        SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
 
-       gl_renderer = qglGetString(GL_RENDERER);
-       gl_vendor = qglGetString(GL_VENDOR);
-       gl_version = qglGetString(GL_VERSION);
-       gl_extensions = qglGetString(GL_EXTENSIONS);
+       gl_renderer = (const char *)qglGetString(GL_RENDERER);
+       gl_vendor = (const char *)qglGetString(GL_VENDOR);
+       gl_version = (const char *)qglGetString(GL_VERSION);
+       gl_extensions = (const char *)qglGetString(GL_EXTENSIONS);
        gl_platform = "SDL";
        // Knghtbrd: should assign platform-specific extensions here
        //TODO: maybe ;)