Skip to content

Commit

Permalink
Fixes OpenGL ES 2 renderer (Thanks Sylvain Becker)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabomdq committed Jun 23, 2014
1 parent 620510b commit e63e1a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/opengles2/SDL_render_gles2.c
Expand Up @@ -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) {
Expand Down

0 comments on commit e63e1a5

Please sign in to comment.