Skip to content

Commit 9d68d61

Browse files
now skipping rendering when viewPort is empty (follow-up to #1148)
1 parent 0e22e5f commit 9d68d61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

starling/src/starling/core/Starling.as

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ package starling.core
434434
* <code>Event.RENDER_COMPLETE</code>-event on the Starling instance too.</p> */
435435
public function render():void
436436
{
437-
if (!contextValid)
437+
if (!contextValid || _viewPort.isEmpty())
438438
return;
439439

440440
makeCurrent();

0 commit comments

Comments
 (0)