opengles2: patched to compile.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 04 Feb 2019 23:35:18 -0500
changeset 125954ecb6ce33406
parent 12594 89dbef84cdcb
child 12596 6654faf2160e
opengles2: patched to compile.
src/render/opengles2/SDL_render_gles2.c
     1.1 --- a/src/render/opengles2/SDL_render_gles2.c	Mon Feb 04 23:32:28 2019 -0500
     1.2 +++ b/src/render/opengles2/SDL_render_gles2.c	Mon Feb 04 23:35:18 2019 -0500
     1.3 @@ -1597,7 +1597,7 @@
     1.4          return 0;
     1.5      }
     1.6  
     1.7 -    renderdata->drawstate.texture = NULL;  /* we trash this state. */
     1.8 +    data->drawstate.texture = NULL;  /* we trash this state. */
     1.9  
    1.10      /* Create a texture subimage with the supplied data */
    1.11      data->glBindTexture(tdata->texture_type, tdata->texture);
    1.12 @@ -1677,7 +1677,7 @@
    1.13          return 0;
    1.14      }
    1.15  
    1.16 -    renderdata->drawstate.texture = NULL;  /* we trash this state. */
    1.17 +    data->drawstate.texture = NULL;  /* we trash this state. */
    1.18  
    1.19      data->glBindTexture(tdata->texture_type, tdata->texture_v);
    1.20      GLES2_TexSubImage2D(data, tdata->texture_type,
    1.21 @@ -1873,7 +1873,7 @@
    1.22      GLES2_ActivateRenderer(renderer);
    1.23  
    1.24      data->glBindTexture(texturedata->texture_type, texturedata->texture);
    1.25 -    renderdata->drawstate.texture = texture;
    1.26 +    data->drawstate.texture = texture;
    1.27  
    1.28      if (texw) {
    1.29          *texw = 1.0;