From: havoc Date: Fri, 29 Feb 2008 10:31:06 +0000 (+0000) Subject: fix warnings on qglGetString calls X-Git-Tag: xonotic-v0.1.0preview~2362 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=3b2b1695eb4c354841b9c719c5523439ff043f57 fix warnings on qglGetString calls git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8161 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_wgl.c b/vid_wgl.c index b5ecef71..42be5559 100644 --- 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