From e63e1a5e64ee32c0437a941e73eccdb927f1c1fc Mon Sep 17 00:00:00 2001 From: Gabriel Jacobo Date: Mon, 23 Jun 2014 09:25:27 -0300 Subject: [PATCH] Fixes OpenGL ES 2 renderer (Thanks Sylvain Becker) --- src/render/opengles2/SDL_render_gles2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/opengles2/SDL_render_gles2.c b/src/render/opengles2/SDL_render_gles2.c index d872b9954..8cdf7c408 100644 --- a/src/render/opengles2/SDL_render_gles2.c +++ b/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) {