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