do not lock draw sem when not using sync update

This commit is contained in:
Vincent Wei
2020-02-12 18:26:47 +08:00
parent 92d36bdb20
commit cf09f73f4c
-2
View File
@@ -939,9 +939,7 @@ void GAL_UpdateRects (GAL_Surface *surface, int numrects, GAL_Rect *rects)
#ifdef _MGSCHEMA_COMPOSITING
if (surface->shared_header) {
LOCK_SURFACE_SEM (surface->shared_header->sem_num);
mark_surface_dirty (surface, numrects, rects);
UNLOCK_SURFACE_SEM (surface->shared_header->sem_num);
}
else if (surface->dirty_info) {
mark_surface_dirty (surface, numrects, rects);