diff options
Diffstat (limited to 'source/blender/imbuf/intern/rectop.c')
-rw-r--r-- | source/blender/imbuf/intern/rectop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/imbuf/intern/rectop.c b/source/blender/imbuf/intern/rectop.c index cb1c5ea2e8d..2f864534d61 100644 --- a/source/blender/imbuf/intern/rectop.c +++ b/source/blender/imbuf/intern/rectop.c @@ -515,7 +515,7 @@ void IMB_rectblend(ImBuf *dbuf, const unsigned short *cmaskrect = curvemask, *cmr; unsigned short *dmaskrect = dmask, *dmr; const unsigned short *texmaskrect = texmask, *tmr; - int do_float, do_char, srcskip, destskip, origskip, x; + int srcskip, destskip, origskip, x; IMB_blend_func func = NULL; IMB_blend_func_float func_float = NULL; @@ -535,8 +535,8 @@ void IMB_rectblend(ImBuf *dbuf, return; } - do_char = (sbuf && sbuf->rect && dbuf->rect && obuf->rect); - do_float = (sbuf && sbuf->rect_float && dbuf->rect_float && obuf->rect_float); + const bool do_char = (sbuf && sbuf->rect && dbuf->rect && obuf->rect); + const bool do_float = (sbuf && sbuf->rect_float && dbuf->rect_float && obuf->rect_float); if (do_char) { drect = dbuf->rect + ((size_t)desty) * dbuf->x + destx; |