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