From 3b2b1695eb4c354841b9c719c5523439ff043f57 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 29 Feb 2008 10:31:06 +0000 Subject: [PATCH] fix warnings on qglGetString calls git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8161 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_wgl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.39.2