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