]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_particles.c
added GL_DepthRange function and MATERIALFLAG_SHORTDEPTHRANGE (now used by viewmodels...
[xonotic/darkplaces.git] / cl_particles.c
index fb1c128284e49a56ccf3788955171b7f452eee07..557872c5dd3c19c3a9c83d93eae135d4d1493cf8 100644 (file)
@@ -2129,6 +2129,7 @@ void R_DrawParticle_TransparentCallback(const entity_render_t *ent, const rtligh
        R_Mesh_TexCoordPointer(0, 2, particle_texcoord2f, 0, 0);
        R_Mesh_ColorPointer(particle_color4f, 0, 0);
        GL_DepthMask(false);
+       GL_DepthRange(0, 1);
        GL_DepthTest(true);
        GL_CullFace(GL_FRONT); // quake is backwards, this culls back faces