SDL_Renderer / GLES2: add specific list of indice to render rect (see #6401)

main
Sylvain 2022-10-18 11:31:30 +02:00
parent e8a4c23ce5
commit dfbb93dd0c
No known key found for this signature in database
GPG Key ID: 5F87E02E5BC0939E
1 changed files with 7 additions and 0 deletions

View File

@ -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);