]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fixed missing break statement
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 6 Feb 2011 12:47:26 +0000 (12:47 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 6 Feb 2011 12:47:26 +0000 (12:47 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10816 d7cf8633-e32d-0410-b094-e92efae38249

dpsoftrast.c

index 67a111a7e57d929e436a84d5ea32615dc3babb79..bd6f1dc4c9bbd43e9ba018200a40fce052875fdf 100644 (file)
@@ -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
 }