Skip viewport render if editor window is minimized (probably more fixes that can be applied similar to this)

This commit is contained in:
parax0 2016-08-30 01:09:54 -06:00
parent 3f3735ac7a
commit 4fd3e9c437
1 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,4 @@
#include "CEditorApplication.h"
#include "CEditorUpdateEvent.h"
#include "IEditor.h"
#include "CBasicViewport.h"
#include <Common/CTimer.h>
@ -27,7 +26,7 @@ void CEditorApplication::TickEditors()
CBasicViewport *pViewport = pEditor->Viewport();
if (pViewport && pViewport->isVisible())
if (pViewport && pViewport->isVisible() && !pEditor->isMinimized())
{
pViewport->ProcessInput();
pViewport->Render();