Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug build fix #961

Merged
merged 1 commit into from
Apr 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Engine/Image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions Engine/OfxEffectInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down