Fixes OpenGL ES 2 renderer (Thanks Sylvain Becker)
authorGabriel Jacobo
Mon, 23 Jun 2014 09:25:27 -0300
changeset 8913d3c44f989e4d
parent 8912 5dfda9d3ccbd
child 8915 49714dc4e195
Fixes OpenGL ES 2 renderer (Thanks Sylvain Becker)
src/render/opengles2/SDL_render_gles2.c
     1.1 --- a/src/render/opengles2/SDL_render_gles2.c	Mon Jun 23 09:18:31 2014 -0300
     1.2 +++ b/src/render/opengles2/SDL_render_gles2.c	Mon Jun 23 09:25:27 2014 -0300
     1.3 @@ -592,7 +592,7 @@
     1.4  
     1.5      /* Reformat the texture data into a tightly packed array */
     1.6      src_pitch = width * bpp;
     1.7 -    src = (Uint8 *)data;
     1.8 +    src = (Uint8 *) pixels;
     1.9      if (pitch != src_pitch) {
    1.10          blob = (Uint8 *)SDL_malloc(src_pitch * height);
    1.11          if (!blob) {