src/render/opengl/SDL_render_gl.c
changeset 5402 5d102cd8aef3
parent 5397 88ff1f463134
child 5465 46bd121b04a2
     1.1 --- a/src/render/opengl/SDL_render_gl.c	Sat Feb 26 11:59:33 2011 -0800
     1.2 +++ b/src/render/opengl/SDL_render_gl.c	Sat Feb 26 21:39:34 2011 -0800
     1.3 @@ -427,7 +427,7 @@
     1.4              /* Need to add size for the U and V planes */
     1.5              size += (2 * (texture->h * data->pitch) / 4);
     1.6          }
     1.7 -        data->pixels = SDL_malloc(size);
     1.8 +        data->pixels = SDL_calloc(1, size);
     1.9          if (!data->pixels) {
    1.10              SDL_OutOfMemory();
    1.11              SDL_free(data);