mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-10 08:23:14 +03:00
fix(gx): correct GxScenePresent behavior
This commit is contained in:
3 files changed
+11
-5
No files matched your search
+6
-2
@@ -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
@@ -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
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user