From 7ddcfe8afd1f03e428ce6cbc4f7c7737d9923838 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole-Andr=C3=A9=20Rodlie?= Date: Thu, 18 Apr 2024 22:56:32 +0200 Subject: [PATCH] Debug build fix --- Engine/Image.cpp | 3 +-- Engine/OfxEffectInstance.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Engine/Image.cpp b/Engine/Image.cpp index 52b319a4c..f356ed2c4 100644 --- a/Engine/Image.cpp +++ b/Engine/Image.cpp @@ -857,8 +857,7 @@ Image::makeParams(const RectD & rod, // the image rod in canonical coordinate U32 textureTarget) { #ifdef DEBUG - RectI pixelRod; - rod.toPixelEnclosing(mipmapLevel, par, &pixelRod); + const RectI pixelRod = rod.toPixelEnclosing(mipmapLevel, par); assert( bounds.left() >= pixelRod.left() && bounds.right() <= pixelRod.right() && bounds.bottom() >= pixelRod.bottom() && bounds.top() <= pixelRod.top() ); #endif diff --git a/Engine/OfxEffectInstance.cpp b/Engine/OfxEffectInstance.cpp index 6defbc2cb..325ec3b72 100644 --- a/Engine/OfxEffectInstance.cpp +++ b/Engine/OfxEffectInstance.cpp @@ -2046,8 +2046,7 @@ OfxEffectInstance::render(const RenderActionArgs& args) // check the dimensions of output images const RectI & dstBounds = firstPlane.second->getBounds(); const RectD & dstRodCanonical = firstPlane.second->getRoD(); - RectI dstRod; - dstRodCanonical.toPixelEnclosing(args.mappedScale, firstPlane.second->getPixelAspectRatio(), &dstRod); + const RectI dstRod = dstRodCanonical.toPixelEnclosing( args.mappedScale, firstPlane.second->getPixelAspectRatio() ); if ( !supportsTiles() && !isDuringPaintStrokeCreationThreadLocal() ) { // http://openfx.sourceforge.net/Documentation/1.3/ofxProgrammingReference.html#kOfxImageEffectPropSupportsTiles