fix(gx): correct GxScenePresent behavior

This commit is contained in:
fallenoak 2023-04-06 12:22:04 -05:00
parent 82ad7bb442
commit 4a1b84ad57
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
3 changed files with 11 additions and 5 deletions

View File

@ -9,11 +9,15 @@ void GxSceneClear(uint32_t mask, CImVector color) {
g_theGxDevicePtr->SceneClear(mask, color);
}
void GxScenePresent() {
void GxScenePresent(uint32_t a2) {
g_theGxDevicePtr->ScenePresent();
}
void GxSub682A00() {
C3Vector v2 = { 0.0f, 0.0f, 0.0f };
GxuFlushDrawList(GxuCat_2, v2);
g_theGxDevicePtr->ScenePresent();
GxScenePresent(0);
}
void GxuFlushDrawList(EGxuDrawListCategory a1, const C3Vector& a2) {

View File

@ -12,7 +12,9 @@ void GxDraw(CGxBatch* batch, int32_t indexed);
void GxSceneClear(uint32_t, CImVector);
void GxScenePresent(void);
void GxScenePresent(uint32_t a2);
void GxSub682A00();
void GxuFlushDrawList(EGxuDrawListCategory, const C3Vector&);

View File

@ -115,14 +115,14 @@ int32_t OnPaint(const void* a1, void* a2) {
if (Screen::s_captureScreen) {
// TODO
GxScenePresent();
GxSub682A00();
// TODO
return 1;
}
GxScenePresent();
GxSub682A00();
}
Screen::s_elapsedSec = 0.0f;