mirror of https://github.com/encounter/SDL.git
opengles2: Fix point drawing.
This commit is contained in:
parent
957c48b4c7
commit
88ac517df0
|
@ -683,8 +683,8 @@ GLES2_QueueDrawPoints(SDL_Renderer * renderer, SDL_RenderCommand *cmd, const SDL
|
||||||
|
|
||||||
cmd->data.draw.count = count;
|
cmd->data.draw.count = count;
|
||||||
for (i = 0; i < count; i++) {
|
for (i = 0; i < count; i++) {
|
||||||
verts->position.y = 0.5f + points[i].x;
|
verts->position.x = 0.5f + points[i].x;
|
||||||
verts->position.x = 0.5f + points[i].y;
|
verts->position.y = 0.5f + points[i].y;
|
||||||
verts->color = color;
|
verts->color = color;
|
||||||
verts++;
|
verts++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue