]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_explosion.c
probable fix for severe model rendering bugs in 3DFX voodoo4/5 win32 drivers, and...
[xonotic/darkplaces.git] / r_explosion.c
index 74e7dd425febc869285dc302fab95b2a3c8b271d..ae40cb45b6e9ec27830d3c5110c8399fbbae53c3 100644 (file)
@@ -184,8 +184,8 @@ void R_DrawExplosion(explosion_t *e)
        glColor4f(1,1,1,e->alpha);
        glDisable(GL_TEXTURE_2D);
 //     glBindTexture(GL_TEXTURE_2D, explosiontexture);
-       glVertexPointer(3, GL_FLOAT, 0, (float *) &e->vert[0][0]);
-//     glTexCoordPointer(2, GL_FLOAT, 0, (float *) &explosiontexcoords[0][0]);
+       glVertexPointer(3, GL_FLOAT, sizeof(float[3]), (float *) &e->vert[0][0]);
+//     glTexCoordPointer(2, GL_FLOAT, sizeof(float[2]), (float *) &explosiontexcoords[0][0]);
        glEnableClientState(GL_VERTEX_ARRAY);
 //     glEnableClientState(GL_TEXTURE_COORD_ARRAY);
        glDrawElements(GL_TRIANGLES, EXPLOSIONTRIS, GL_UNSIGNED_INT, indexlist);