From f81042b3e20a2d9d300c0431d0bb094435eef340 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Tue, 21 Jun 2016 22:10:04 +0200 Subject: [PATCH] Fix warning generated by gcc --- src/r_draw_rgba.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/r_draw_rgba.cpp b/src/r_draw_rgba.cpp index 8144c096d7..57b32b28c6 100644 --- a/src/r_draw_rgba.cpp +++ b/src/r_draw_rgba.cpp @@ -1722,7 +1722,8 @@ public: // 64x64 is the most common case by far, so special case it. do { - *dest++ = alpha_blend(shade_bgra(sample_bilinear(source, xfrac, yfrac, 26, 26), light, shade_constants), *dest); + *dest = alpha_blend(shade_bgra(sample_bilinear(source, xfrac, yfrac, 26, 26), light, shade_constants), *dest); + dest++; xfrac += xstep; yfrac += ystep; } while (--count); @@ -1734,7 +1735,8 @@ public: int xmask = ((1 << _xbits) - 1) << _ybits; do { - *dest++ = alpha_blend(shade_bgra(sample_bilinear(source, xfrac, yfrac, 32 - _xbits, 32 - _ybits), light, shade_constants), *dest); + *dest = alpha_blend(shade_bgra(sample_bilinear(source, xfrac, yfrac, 32 - _xbits, 32 - _ybits), light, shade_constants), *dest); + dest++; xfrac += xstep; yfrac += ystep; } while (--count);