DescriptionSometimes, the cache serves us textures of different sizes for srcTexture and dstTexture (this is fair; they're supposed to be approximate). Code was assuming otherwise while downsampling; fix is to reapply the scale on each downsample. (Yes, I could cache these reciprocals if and when they prove to be a hot spot).
Also, use setIDiv(w,h) everywhere for conciseness.
Patch Set 1 #
MessagesTotal messages: 3
|