]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - csprogs.c
Changed how polygonbegin guesses if the geometry is 2D or 3D, it now uses a separate...
[xonotic/darkplaces.git] / csprogs.c
index f0a01a2678c783f94d639616de86621d4a62a0c9..6c2d1eff6b9c74d9c2dbb71f92c6c1a33ebf5aff 100644 (file)
--- a/csprogs.c
+++ b/csprogs.c
@@ -486,6 +486,8 @@ qboolean CL_VM_UpdateView (double frametime)
                // CSQC_UpdateView function does not call R_ClearScene as it should
                r_refdef.scene.numentities = 0;
                r_refdef.scene.numlights = 0;
+               // polygonbegin without draw2d arg has to guess
+               prog->polygonbegin_guess2d = false;
                // pass in width and height as parameters (EXT_CSQC_1)
                PRVM_G_FLOAT(OFS_PARM0) = vid.width;
                PRVM_G_FLOAT(OFS_PARM1) = vid.height;