Skip to content

Commit

Permalink
OfxEffectInstance: fix dynamic tile support
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Aug 17, 2016
1 parent 3a306f5 commit b5e3b35
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Engine/OfxEffectInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2702,7 +2702,10 @@ OfxEffectInstance::supportsTiles() const
if (!effectInstance()) {
return false;
}
if ( !effectInstance()->getDescriptor().supportsTiles() || !effectInstance()->supportsTiles() ) {
// This is a dynamic property since OFX 1.4, so get the prop from the instance, not the descriptor.
// The descriptor may have it set to false for backward compatibility with hosts that do not support
// this dynamic property.
if ( !effectInstance()->supportsTiles() ) {
return false;
}

Expand Down

0 comments on commit b5e3b35

Please sign in to comment.