We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d07b2fc commit d87cf4eCopy full SHA for d87cf4e
1 file changed
src/renderer/webgl/pipelines/PostFXPipeline.js
@@ -265,11 +265,10 @@ var PostFXPipeline = new Class({
265
{
266
this.bind(currentShader);
267
268
- if (this.currentTarget)
269
- {
270
- // Pop out this pipelines renderTarget
271
- this.renderer.popFramebuffer();
272
- }
+ this.set1i('uMainSampler', 0);
+
+ // Pop out this pipelines renderTarget
+ this.renderer.popFramebuffer();
273
274
var gl = this.gl;
275
@@ -279,7 +278,7 @@ var PostFXPipeline = new Class({
279
278
gl.bufferData(gl.ARRAY_BUFFER, this.vertexData, gl.STATIC_DRAW);
280
gl.drawArrays(gl.TRIANGLES, 0, 6);
281
282
- gl.bindTexture(gl.TEXTURE_2D, null);
+ this.renderer.resetTextures();
283
}
284
285
});
0 commit comments