Commit 8b6f7265465e21b7ac7e3884dae754b9f3f65184

Sam Lantinga 2022-10-18T09:21:48

Merge commit 'dfbb93dd0c4bcdea2a3edc0e3cb0f5dae153d16e' into main

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/src/render/opengles2/SDL_render_gles2.c b/src/render/opengles2/SDL_render_gles2.c
index ac22c2b..4112c1a 100644
--- a/src/render/opengles2/SDL_render_gles2.c
+++ b/src/render/opengles2/SDL_render_gles2.c
@@ -2232,6 +2232,13 @@ GLES2_CreateRenderer(SDL_Window *window, Uint32 flags)
     }
 #endif
 
+    renderer->rect_indice_list[0] = 0;
+    renderer->rect_indice_list[1] = 1;
+    renderer->rect_indice_list[2] = 3;
+    renderer->rect_indice_list[3] = 1;
+    renderer->rect_indice_list[4] = 3;
+    renderer->rect_indice_list[5] = 2;
+
     /* Set up parameters for rendering */
     data->glActiveTexture(GL_TEXTURE0);
     data->glPixelStorei(GL_PACK_ALIGNMENT, 1);