From: eihrul Date: Sun, 6 Feb 2011 12:47:26 +0000 (+0000) Subject: fixed missing break statement X-Git-Tag: xonotic-v0.5.0~438^2~25 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4d1ddc65dee15eba7745a8d9827c9e686342d697;p=xonotic%2Fdarkplaces.git fixed missing break statement git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10816 d7cf8633-e32d-0410-b094-e92efae38249 --- 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 }