diff --git a/src/render/render.cpp b/src/render/render.cpp index 57ea30901..5d1a8d559 100644 --- a/src/render/render.cpp +++ b/src/render/render.cpp @@ -365,9 +365,11 @@ void composite_image_scale_down( const LockImageBits srcBits(src, srcBounds); LockImageBits dstBits(dst, dstBounds); auto src_it = srcBits.begin(); - auto src_end = srcBits.end(); auto dst_it = dstBits.begin(); +#ifdef _DEBUG + auto src_end = srcBits.end(); auto dst_end = dstBits.end(); +#endif // Adjust to src_it for each line int adjust_per_line = (dstBounds.w*step_w)*(step_h-1);