From 384aeda487ac4f97a5e2f73172fdd0243d5cc5b1 Mon Sep 17 00:00:00 2001 From: gewlitys Date: Wed, 4 Dec 2002 14:50:41 +0000 Subject: [PATCH] Fixed mutex deadlock, from tamlin git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@316 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/graphics/sdl/3do_blt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sc2/src/sc2code/libs/graphics/sdl/3do_blt.c b/sc2/src/sc2code/libs/graphics/sdl/3do_blt.c index 6a8b597cf..5e39eefbe 100644 --- a/sc2/src/sc2code/libs/graphics/sdl/3do_blt.c +++ b/sc2/src/sc2code/libs/graphics/sdl/3do_blt.c @@ -153,6 +153,7 @@ blt (PRECT pClipRect, PRIMITIVEPTR PrimPtr) DrawCommand.BlendNumerator = BlendNumerator; DrawCommand.BlendDenominator = BlendDenominator; + UnlockMutex (img->mutex); TFB_EnqueueDrawCommand(&DrawCommand); } else @@ -178,9 +179,8 @@ blt (PRECT pClipRect, PRIMITIVEPTR PrimPtr) ); UnlockMutex (dst_img->mutex); + UnlockMutex (img->mutex); } - - UnlockMutex (img->mutex); } static void