Commit 88ac517df0c65de94f15bf31b5a72d67645ae46a

Ryan C. Gordon 2022-01-07T15:03:47

opengles2: Fix point drawing.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/render/opengles2/SDL_render_gles2.c b/src/render/opengles2/SDL_render_gles2.c
index 9465eb0..3011c2e 100644
--- a/src/render/opengles2/SDL_render_gles2.c
+++ b/src/render/opengles2/SDL_render_gles2.c
@@ -683,8 +683,8 @@ GLES2_QueueDrawPoints(SDL_Renderer * renderer, SDL_RenderCommand *cmd, const SDL
 
     cmd->data.draw.count = count;
     for (i = 0; i < count; i++) {
-        verts->position.y = 0.5f + points[i].x;
-        verts->position.x = 0.5f + points[i].y;
+        verts->position.x = 0.5f + points[i].x;
+        verts->position.y = 0.5f + points[i].y;
         verts->color = color;
         verts++;
     }