Browse Source

Fixes OpenGL ES 2 renderer (Thanks Sylvain Becker)

Gabriel Jacobo 11 years ago
parent
commit
e63e1a5e64
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/render/opengles2/SDL_render_gles2.c

+ 1 - 1
src/render/opengles2/SDL_render_gles2.c

@@ -592,7 +592,7 @@ GLES2_TexSubImage2D(GLES2_DriverContext *data, GLenum target, GLint xoffset, GLi
 
     /* 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) {