Fix Rotator

This commit is contained in:
MegaMech
2025-03-28 19:58:35 -06:00
parent d760025358
commit a6d19eee1b
61 changed files with 277 additions and 206 deletions
+8 -3
View File
@@ -256,7 +256,6 @@ void GameEngine::StartFrame() const {
default:
break;
}
this->context->GetWindow()->StartFrame();
}
// void GameEngine::ProcessFrame(void (*run_one_game_iter)()) const {
@@ -265,13 +264,19 @@ void GameEngine::StartFrame() const {
// }
void GameEngine::RunCommands(Gfx* Commands) {
gfx_run(Commands, {});
gfx_end_frame();
auto wnd = std::dynamic_pointer_cast<Fast::Fast3dWindow>(Ship::Context::GetInstance()->GetWindow());
if (ShouldClearTextureCacheAtEndOfFrame) {
gfx_texture_cache_clear();
ShouldClearTextureCacheAtEndOfFrame = false;
}
if (nullptr == wnd) {
return;
}
wnd->HandleEvents();
wnd->DrawAndRunGraphicsCommands(Commands, {});
}
void GameEngine::ProcessGfxCommands(Gfx* commands) {