]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_draw.c
added r_viewfbo and r_viewscale cvars - the former allows use of
[xonotic/darkplaces.git] / gl_draw.c
index 23eed34011f388008fc71b728cc7ca794f5cc6b7..50fcb81e35adfd2608e77379e85e270ec7746cbf 100644 (file)
--- a/gl_draw.c
+++ b/gl_draw.c
@@ -1015,6 +1015,7 @@ static void _DrawQ_Setup(void)
        r_refdef.draw2dstage = 1;
        CHECKGLERROR
        R_Viewport_InitOrtho(&viewport, &identitymatrix, r_refdef.view.x, vid.height - r_refdef.view.y - r_refdef.view.height, r_refdef.view.width, r_refdef.view.height, 0, 0, vid_conwidth.integer, vid_conheight.integer, -10, 100, NULL);
+       R_Mesh_ResetRenderTargets();
        R_SetViewport(&viewport);
        GL_ColorMask(r_refdef.view.colormask[0], r_refdef.view.colormask[1], r_refdef.view.colormask[2], 1);
        GL_DepthFunc(GL_LEQUAL);