From 94a358995a07b7c2ca8e937f2669b83dea73a164 Mon Sep 17 00:00:00 2001 From: Brandon Mak Date: Fri, 9 Sep 2022 13:32:55 +0800 Subject: [PATCH] Window is rendering black screen --- SHADE_Application/src/Application/SBApplication.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SHADE_Application/src/Application/SBApplication.cpp b/SHADE_Application/src/Application/SBApplication.cpp index 2a4a18af..69662415 100644 --- a/SHADE_Application/src/Application/SBApplication.cpp +++ b/SHADE_Application/src/Application/SBApplication.cpp @@ -38,13 +38,17 @@ namespace Sandbox void SBApplication::Update(void) { + SHADE::SHGraphicsSystem* graphicsSystem = static_cast(SHADE::SHSystemManager::GetSystem("Graphics System")); + //TODO: Change true to window is open while (!window.WindowShouldClose()) { + graphicsSystem->BeginRender(); #ifdef SHEDITOR #else #endif - } + graphicsSystem->EndRender(); + } }