]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_agl.c
don't use GL_RGBA internalformat on opaque textures (thanks to Rock for
[xonotic/darkplaces.git] / vid_agl.c
index af5c8b7f9d005c333d00dbce3abde1b37d414690..b0afdcf98126dfe3f99be8ffc4b12066e2facb3f 100644 (file)
--- a/vid_agl.c
+++ b/vid_agl.c
@@ -212,11 +212,8 @@ void VID_Finish (void)
 
        if (!vid_hidden)
        {
-               CHECKGLERROR
                if (r_speeds.integer == 2 || gl_finish.integer)
-               {
-                       qglFinish();CHECKGLERROR
-               }
+                       GL_Finish();
                qaglSwapBuffers(context);
        }
        VID_UpdateGamma(false, GAMMA_TABLE_SIZE);
@@ -694,14 +691,11 @@ qboolean VID_InitMode(viddef_mode_t *mode)
                }
        }
 
-       memset(&vid.support, 0, sizeof(vid.support));
-
        if ((qglGetString = (const GLubyte* (GLAPIENTRY *)(GLenum name))GL_GetProcAddress("glGetString")) == NULL)
                Sys_Error("glGetString not found in %s", gl_driver);
 
        gl_platformextensions = "";
        gl_platform = "AGL";
-       gl_videosyncavailable = true;
 
        multithreadedgl = false;
        vid_isfullscreen = mode->fullscreen;