fix(gx): correct GxScenePresent behavior

This commit is contained in:
fallenoak committed 2023-04-06 12:22:04 -05:00
1 parent 82ad7bb442
commit 4a1b84ad57
3 files changed
+11 -5

No files matched your search

+6 -2
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) {
+3 -1
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&);
+2 -2
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;