src/render/opengles2/SDL_render_gles2.c
changeset 5402 5d102cd8aef3
parent 5355 cc2215cda170
child 5484 e20c93bc9122
--- a/src/render/opengles2/SDL_render_gles2.c	Sat Feb 26 11:59:33 2011 -0800
+++ b/src/render/opengles2/SDL_render_gles2.c	Sat Feb 26 21:39:34 2011 -0800
@@ -272,7 +272,7 @@
     if (texture->access == SDL_TEXTUREACCESS_STREAMING)
     {
         tdata->pitch = texture->w * SDL_BYTESPERPIXEL(texture->format);
-        tdata->pixel_data = SDL_malloc(tdata->pitch * texture->h);
+        tdata->pixel_data = SDL_calloc(1, tdata->pitch * texture->h);
         if (!tdata->pixel_data)
         {
             SDL_OutOfMemory();