# SDL: opengles2: Fix point drawing.

**URL:** <https://discourse.libsdl.org/t/sdl-opengles2-fix-point-drawing/34326>\
**Category:** SDL Commits\
**Created:** [January 7, 2022, 8:06pm UTC](https://discourse.libsdl.org/t/sdl-opengles2-fix-point-drawing/34326 "2022-01-07T20:06:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [January 7, 2022, 8:06pm UTC](https://discourse.libsdl.org/t/sdl-opengles2-fix-point-drawing/34326/1 "2022-01-07T20:06:02Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/88ac517df0c65de94f15bf31b5a72d67645ae46a>

```diff
From 88ac517df0c65de94f15bf31b5a72d67645ae46a Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Fri, 7 Jan 2022 15:03:47 -0500
Subject: [PATCH] opengles2: Fix point drawing.

---
 src/render/opengles2/SDL_render_gles2.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/render/opengles2/SDL_render_gles2.c b/src/render/opengles2/SDL_render_gles2.c
index 9465eb0a9c5..3011c2e12d3 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++;
     }

```
