]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_screen.c
fix a warning in msvc6
[xonotic/darkplaces.git] / cl_screen.c
index 2a531c17ac69c6763d6ffd197cb9fb43a7d03cc5..2a83ee0c681ccf61718fee685443ba3483865942 100644 (file)
@@ -1171,7 +1171,7 @@ Cr = R *  .500 + G * -.419 + B * -.0813 + 128.;
                SCR_CaptureVideo_RIFF_Push("vprp", NULL);
                SCR_CaptureVideo_RIFF_Write32(0); // VideoFormatToken
                SCR_CaptureVideo_RIFF_Write32(0); // VideoStandard
-               SCR_CaptureVideo_RIFF_Write32(cls.capturevideo.framerate); // dwVerticalRefreshRate (bogus)
+               SCR_CaptureVideo_RIFF_Write32((int)cls.capturevideo.framerate); // dwVerticalRefreshRate (bogus)
                SCR_CaptureVideo_RIFF_Write32(width); // dwHTotalInT
                SCR_CaptureVideo_RIFF_Write32(height); // dwVTotalInLines
                FindFraction(aspect, &n, &d, 1000);
@@ -1780,6 +1780,10 @@ void SCR_DrawScreen (void)
 
        R_UpdateVariables();
 
+       // Quake uses clockwise winding, so these are swapped
+       r_view.cullface_front = GL_BACK;
+       r_view.cullface_back = GL_FRONT;
+
        if (cls.signon == SIGNONS)
        {
                float size;