Skip to content

Commit 5176fcf

Browse files
committed
The Canvas Renderer will no longer run a fillRect if clearBeforeRender is false in the Game Config.
1 parent c5cbb41 commit 5176fcf

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/renderer/canvas/CanvasRenderer.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -371,12 +371,12 @@ var CanvasRenderer = new Class({
371371
if (config.clearBeforeRender)
372372
{
373373
ctx.clearRect(0, 0, width, height);
374-
}
375374

376-
if (!config.transparent)
377-
{
378-
ctx.fillStyle = config.backgroundColor.rgba;
379-
ctx.fillRect(0, 0, width, height);
375+
if (!config.transparent)
376+
{
377+
ctx.fillStyle = config.backgroundColor.rgba;
378+
ctx.fillRect(0, 0, width, height);
379+
}
380380
}
381381

382382
ctx.save();

0 commit comments

Comments
 (0)