]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_agl.c
made darkplaces compile successfully with g++ to test for errors C doesn't care about...
[xonotic/darkplaces.git] / vid_agl.c
index 6fa1e75a921b4e0de2998b5325e0909855ef36e3..aa7e8b01f9c057f7f7711f106f84ad169ae7d8f4 100644 (file)
--- a/vid_agl.c
+++ b/vid_agl.c
@@ -389,7 +389,7 @@ int VID_InitMode(int fullscreen, int width, int height, int bpp)
        scr_width = width;
        scr_height = height;
 
        scr_width = width;
        scr_height = height;
 
-       if ((qglGetString = GL_GetProcAddress("glGetString")) == NULL)
+       if ((qglGetString = (const GLubyte* (GLAPIENTRY *)(GLenum name))GL_GetProcAddress("glGetString")) == NULL)
                Sys_Error("glGetString not found in %s", gl_driver);
 
        if (fullscreen)
                Sys_Error("glGetString not found in %s", gl_driver);
 
        if (fullscreen)