Don't clear away the scenery after drawing it!

Fixes the 3D view.
This commit is contained in:
Patrick Walton 2017-11-02 16:17:35 -07:00
parent 572b7cdd4a
commit 511e5956d8
1 changed files with 3 additions and 3 deletions

View File

@ -111,9 +111,6 @@ export abstract class Renderer {
renderContext.atlasRenderingTimerQuery);
}
// Draw "scenery" (used in the 3D view).
this.drawSceneryIfNecessary();
// Antialias.
const antialiasingStrategy = unwrapNull(this.antialiasingStrategy);
antialiasingStrategy.antialias(this);
@ -124,6 +121,9 @@ export abstract class Renderer {
// Clear.
this.clearForDirectRendering();
// Draw "scenery" (used in the 3D view).
this.drawSceneryIfNecessary();
// Perform direct rendering (Loop-Blinn).
if (antialiasingStrategy.directRenderingMode !== 'none')
this.renderDirect();