Skip to content
Permalink
Browse files

Fixes OpenGL ES 2 renderer (Thanks Sylvain Becker)

  • Loading branch information
gabomdq committed Jun 23, 2014
1 parent 620510b commit e63e1a5e64ee32c0437a941e73eccdb927f1c1fc
Showing with 1 addition and 1 deletion.
  1. +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) {

0 comments on commit e63e1a5

Please sign in to comment.