]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix warnings on qglGetString calls
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 29 Feb 2008 10:31:06 +0000 (10:31 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 29 Feb 2008 10:31:06 +0000 (10:31 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8161 d7cf8633-e32d-0410-b094-e92efae38249

vid_wgl.c

index b5ecef718dce6a0b031d55695b938439aa6fee6f..42be555945dc6a047d10def356e94fc2296cdd33 100644 (file)
--- a/vid_wgl.c
+++ b/vid_wgl.c
@@ -1154,15 +1154,15 @@ int VID_InitMode (int fullscreen, int width, int height, int bpp, int refreshrat
                if ((qwglGetExtensionsStringARB = (const char *(WINAPI *)(HDC hdc))GL_GetProcAddress("wglGetExtensionsStringARB")) == NULL)
                        Con_Print("wglGetExtensionsStringARB not found\n");
 
-               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 = "WGL";
                gl_platformextensions = "";
 
                if (qwglGetExtensionsStringARB)
-                       gl_platformextensions = qwglGetExtensionsStringARB(baseDC);
+                       gl_platformextensions = (const char *)qwglGetExtensionsStringARB(baseDC);
 
                // now some nice Windows pain:
                // we have created a window, we needed one to find out if there are