mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-26 12:27:58 +08:00
remove code to allocate dirty_info for all newly created surfaces
This commit is contained in:
@@ -140,12 +140,7 @@ GAL_Surface * GAL_CreateRGBSurface (Uint32 flags,
|
||||
surface->format_version = 0;
|
||||
#if IS_COMPOSITING_SCHEMA
|
||||
surface->shared_header = NULL;
|
||||
surface->dirty_info = calloc (1, sizeof (GAL_DirtyInfo));
|
||||
if (surface->dirty_info == NULL) {
|
||||
GAL_FreeSurface(surface);
|
||||
GAL_OutOfMemory();
|
||||
return(NULL);
|
||||
}
|
||||
surface->dirty_info = NULL;
|
||||
#endif
|
||||
GAL_SetClipRect(surface, NULL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user