disable set the pixels to 0 for a new RGB surface

This commit is contained in:
Vincent Wei
2020-03-01 23:01:40 +08:00
parent 837872c8bb
commit ea43d9e3ce

View File

@@ -160,7 +160,7 @@ GAL_Surface * GAL_CreateRGBSurface (Uint32 flags,
return(NULL);
}
/* This is important for bitmaps */
memset(surface->pixels, 0, surface->h*surface->pitch);
//memset(surface->pixels, 0, surface->h*surface->pitch);
surface->flags &= ~GAL_HWSURFACE;
}
}