]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_draw.c
the -profilegameonly option now stops profiling in CL_Disconnect to give
[xonotic/darkplaces.git] / gl_draw.c
index f3241e561a2ebe373795293d2912cdcabc262bf3..9292c38cdc5fc24bd1dc66b442371081eb7745fb 100644 (file)
--- a/gl_draw.c
+++ b/gl_draw.c
@@ -737,8 +737,8 @@ static void _DrawQ_Setup(void)
                return;
        r_refdef.draw2dstage = true;
        CHECKGLERROR
-       qglViewport(r_view.x, vid.height - (r_view.y + r_view.height), r_view.width, r_view.height);CHECKGLERROR
-       GL_ColorMask(r_view.colormask[0], r_view.colormask[1], r_view.colormask[2], 1);
+       qglViewport(r_refdef.view.x, vid.height - (r_refdef.view.y + r_refdef.view.height), r_refdef.view.width, r_refdef.view.height);CHECKGLERROR
+       GL_ColorMask(r_refdef.view.colormask[0], r_refdef.view.colormask[1], r_refdef.view.colormask[2], 1);
        GL_SetupView_Mode_Ortho(0, 0, vid_conwidth.integer, vid_conheight.integer, -10, 100);
        qglDepthFunc(GL_LEQUAL);CHECKGLERROR
        qglDisable(GL_POLYGON_OFFSET_FILL);CHECKGLERROR