Use the correct type for particle colors.

Sending byte data as floats doesn't work too well :P Fixes the colors of
the particles, but not the size :(.
This commit is contained in:
Bill Currie 2012-01-21 16:16:48 +09:00
parent 2cb2f230fd
commit 62c5070d8b

View file

@ -1627,8 +1627,8 @@ draw_id_particles (void)
qfglVertexAttribPointer (quake_point.vertex.location, 3, GL_FLOAT,
0, sizeof (partvert_t),
&particleVertexArray[0].vertex);
qfglVertexAttribPointer (quake_point.color.location, 1, GL_FLOAT,
0, sizeof (partvert_t),
qfglVertexAttribPointer (quake_point.color.location, 1, GL_UNSIGNED_BYTE,
1, sizeof (partvert_t),
&particleVertexArray[0].color);
qfglDrawArrays (GL_POINTS, 0, vacount);