From cf09f73f4ccfcaf650ce0e990f30732dd91cd942 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Wed, 12 Feb 2020 18:26:47 +0800 Subject: [PATCH] do not lock draw sem when not using sync update --- src/newgal/video.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/newgal/video.c b/src/newgal/video.c index f87c25f7..974e7c1e 100644 --- a/src/newgal/video.c +++ b/src/newgal/video.c @@ -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);