opengles1: set some non-zero drawstate defaults. SDL-ryan-batching-renderer
authorRyan C. Gordon <icculus@icculus.org>
Fri, 28 Sep 2018 19:48:14 -0400
branchSDL-ryan-batching-renderer
changeset 12263b16e5f26d6bd
parent 12262 2a34f0026a8d
child 12264 9727984170f7
opengles1: set some non-zero drawstate defaults.
src/render/opengles/SDL_render_gles.c
     1.1 --- a/src/render/opengles/SDL_render_gles.c	Fri Sep 28 19:47:44 2018 -0400
     1.2 +++ b/src/render/opengles/SDL_render_gles.c	Fri Sep 28 19:48:14 2018 -0400
     1.3 @@ -1176,6 +1176,10 @@
     1.4      data->glEnableClientState(GL_VERTEX_ARRAY);
     1.5      data->glDisableClientState(GL_TEXTURE_COORD_ARRAY);
     1.6  
     1.7 +    data->drawstate.blend = SDL_BLENDMODE_INVALID;
     1.8 +    data->drawstate.color = 0xFFFFFFFF;
     1.9 +    data->drawstate.clear_color = 0xFFFFFFFF;
    1.10 +
    1.11      return renderer;
    1.12  
    1.13  error: