mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
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:
parent
2cb2f230fd
commit
62c5070d8b
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue