]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Disable combining of surfaces in R_PolygonBegin, it makes assumptions that break...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 22 Jan 2020 07:21:11 +0000 (07:21 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 22 Jan 2020 07:21:11 +0000 (07:21 +0000)
Thanks to Cloudwalk for the tip, and divVerent and others for debugging in depth.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12502 d7cf8633-e32d-0410-b094-e92efae38249

clvm_cmds.c

index b1060a56048f01aeadba07bff54192413ddb6c8a..25f3b195a32441e89ae583875990eadcbb5c44cf 100644 (file)
@@ -3316,7 +3316,7 @@ static void VM_CL_R_PolygonBegin (prvm_prog_t *prog)
        // we need to remember whether this is a 2D or 3D mesh we're adding to
        mod = draw2d ? CL_Mesh_UI() : CL_Mesh_CSQC();
        prog->polygonbegin_model = mod;
-       Mod_Mesh_AddSurface(mod, Mod_Mesh_GetTexture(mod, texname, drawflags, TEXF_ALPHA, MATERIALFLAG_WALL | MATERIALFLAG_VERTEXCOLOR | MATERIALFLAG_ALPHAGEN_VERTEX), draw2d);
+       Mod_Mesh_AddSurface(mod, Mod_Mesh_GetTexture(mod, texname, drawflags, TEXF_ALPHA, MATERIALFLAG_WALL | MATERIALFLAG_VERTEXCOLOR | MATERIALFLAG_ALPHAGEN_VERTEX), false);
 }
 
 //void(vector org, vector texcoords, vector rgb, float alpha) R_PolygonVertex