]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_particles.c
R_Mesh_State_Texture and GL_VertexPointer merge once again to become the reborn R_Mes...
[xonotic/darkplaces.git] / cl_particles.c
index aa458a271c3b34bd75011f7a8baa7075963af4a4..358d96ec5160be50d147199e0019fdc7f7a66199 100644 (file)
@@ -1885,7 +1885,8 @@ void R_DrawParticleCallback(const void *calldata1, int calldata2)
        memset(&m, 0, sizeof(m));
        m.tex[0] = R_GetTexture(tex->texture);
        m.pointer_texcoord[0] = particle_texcoord2f;
-       R_Mesh_State_Texture(&m);
+       m.pointer_vertex = particle_vertex3f;
+       R_Mesh_State(&m);
 
        if (p->blendmode == 0)
                GL_BlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
@@ -1895,7 +1896,6 @@ void R_DrawParticleCallback(const void *calldata1, int calldata2)
                GL_BlendFunc(GL_ZERO, GL_ONE_MINUS_SRC_COLOR);
        GL_DepthMask(false);
        GL_DepthTest(true);
-       GL_VertexPointer(particle_vertex3f);
 #endif
        if (p->orientation == PARTICLE_BILLBOARD || p->orientation == PARTICLE_ORIENTED_DOUBLESIDED)
        {