[Commits] SDL: opengles1: set some non-zero drawstate defaults.

libsdl.org revision control commits-owner at libsdl.org
Sat Sep 29 13:49:51 PDT 2018


details:   https://hg.libsdl.org/SDL/rev/b16e5f26d6bd
changeset: 12263:b16e5f26d6bd
user:      Ryan C. Gordon <icculus at icculus.org>
date:      Fri Sep 28 19:48:14 2018 -0400
description:
opengles1: set some non-zero drawstate defaults.

diffstat:

 src/render/opengles/SDL_render_gles.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 2a34f0026a8d -r b16e5f26d6bd src/render/opengles/SDL_render_gles.c
--- a/src/render/opengles/SDL_render_gles.c	Fri Sep 28 19:47:44 2018 -0400
+++ b/src/render/opengles/SDL_render_gles.c	Fri Sep 28 19:48:14 2018 -0400
@@ -1176,6 +1176,10 @@
     data->glEnableClientState(GL_VERTEX_ARRAY);
     data->glDisableClientState(GL_TEXTURE_COORD_ARRAY);
 
+    data->drawstate.blend = SDL_BLENDMODE_INVALID;
+    data->drawstate.color = 0xFFFFFFFF;
+    data->drawstate.clear_color = 0xFFFFFFFF;
+
     return renderer;
 
 error:


More information about the commits mailing list