From 4d1ddc65dee15eba7745a8d9827c9e686342d697 Mon Sep 17 00:00:00 2001 From: eihrul Date: Sun, 6 Feb 2011 12:47:26 +0000 Subject: [PATCH] fixed missing break statement git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10816 d7cf8633-e32d-0410-b094-e92efae38249 --- dpsoftrast.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dpsoftrast.c b/dpsoftrast.c index 67a111a7..bd6f1dc4 100644 --- a/dpsoftrast.c +++ b/dpsoftrast.c @@ -2186,7 +2186,7 @@ void DPSOFTRAST_Draw_Span_FinishBGRA8(DPSOFTRAST_State_Thread *thread, const DPS break; case DPSOFTRAST_BLENDMODE_ALPHA: #define FINISHBLEND(blend2, blend1) \ - for (x = startx;x + 2 <= endx;x += 2) \ + for (x = startx;x + 1 < endx;x += 2) \ { \ __m128i src, dst; \ switch (*(const unsigned short*)&pixelmask[x]) \ @@ -2280,6 +2280,7 @@ void DPSOFTRAST_Draw_Span_FinishBGRA8(DPSOFTRAST_State_Thread *thread, const DPS }, { dst = _mm_add_epi16(dst, _mm_mulhi_epi16(_mm_slli_epi16(_mm_sub_epi16(_mm_set1_epi16(255), dst), 4), _mm_slli_epi16(src, 4))); }); + break; } #endif } -- 2.39.2