]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_explosion.c
add cl_dyntexture.o to makefile
[xonotic/darkplaces.git] / r_explosion.c
index 3d8efefbf5c4452d0ebe6e5e47c0e986bcd6599e..9f5888dc20323b2020c175d09a9b05da6e44a546 100644 (file)
@@ -187,8 +187,10 @@ static void R_DrawExplosion_TransparentCallback(const entity_render_t *ent, cons
        rmeshstate_t m;
        GL_BlendFunc(GL_SRC_ALPHA, GL_ONE);
        GL_DepthMask(false);
+       GL_DepthRange(0, 1);
+       GL_PolygonOffset(r_refdef.polygonfactor, r_refdef.polygonoffset);
        GL_DepthTest(true);
-       GL_CullFace(GL_FRONT); // quake is backwards, this culls back faces
+       GL_CullFace(r_view.cullface_back);
        R_Mesh_Matrix(&identitymatrix);
 
        R_Mesh_ColorPointer(NULL, 0, 0);