Skip to content

Commit

Permalink
opengles2: patched to compile.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 5, 2019
1 parent b7504f3 commit 40781df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/render/opengles2/SDL_render_gles2.c
Expand Up @@ -1597,7 +1597,7 @@ GLES2_UpdateTexture(SDL_Renderer *renderer, SDL_Texture *texture, const SDL_Rect
return 0;
}

renderdata->drawstate.texture = NULL; /* we trash this state. */
data->drawstate.texture = NULL; /* we trash this state. */

/* Create a texture subimage with the supplied data */
data->glBindTexture(tdata->texture_type, tdata->texture);
Expand Down Expand Up @@ -1677,7 +1677,7 @@ GLES2_UpdateTextureYUV(SDL_Renderer * renderer, SDL_Texture * texture,
return 0;
}

renderdata->drawstate.texture = NULL; /* we trash this state. */
data->drawstate.texture = NULL; /* we trash this state. */

data->glBindTexture(tdata->texture_type, tdata->texture_v);
GLES2_TexSubImage2D(data, tdata->texture_type,
Expand Down Expand Up @@ -1873,7 +1873,7 @@ static int GLES2_BindTexture (SDL_Renderer * renderer, SDL_Texture *texture, flo
GLES2_ActivateRenderer(renderer);

data->glBindTexture(texturedata->texture_type, texturedata->texture);
renderdata->drawstate.texture = texture;
data->drawstate.texture = texture;

if (texw) {
*texw = 1.0;
Expand Down

0 comments on commit 40781df

Please sign in to comment.