We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1b184a commit 0370ebfCopy full SHA for 0370ebf
1 file changed
v3/src/renderer/webgl/WebGLRenderer.js
@@ -247,6 +247,7 @@ WebGLRenderer.prototype = {
247
// Call at the start of the render loop
248
preRender: function ()
249
{
250
+ this.setRenderTarget(null);
251
// No point rendering if our context has been blown up!
252
if (this.contextLost)
253
@@ -279,8 +280,8 @@ WebGLRenderer.prototype = {
279
280
// Could move to the State Systems or MainLoop
281
var gl = this.gl;
282
var scissor = (camera.x !== 0 || camera.y !== 0 || camera.width !== gl.canvas.width || camera.height !== gl.canvas.height);
- this.setRenderTarget(null);
283
284
285
if (scissor)
286
287
gl.enable(gl.SCISSOR_TEST);
0 commit comments