Fix #7799
@@ -164,12 +164,13 @@ export class EffectRenderer {
// Reset state
this.setViewport();
- this.applyEffectWrapper(effectWrapper);
if (renderTo) {
this.engine.bindFramebuffer(renderTo.getInternalTexture()!);
}
+ this.applyEffectWrapper(effectWrapper);
+
this.draw();