mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-16 10:04:42 +03:00
fix(gx): correct GxScenePresent behavior
This commit is contained in:
parent
82ad7bb442
commit
4a1b84ad57
@ -9,11 +9,15 @@ void GxSceneClear(uint32_t mask, CImVector color) {
|
|||||||
g_theGxDevicePtr->SceneClear(mask, 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 };
|
C3Vector v2 = { 0.0f, 0.0f, 0.0f };
|
||||||
GxuFlushDrawList(GxuCat_2, v2);
|
GxuFlushDrawList(GxuCat_2, v2);
|
||||||
|
|
||||||
g_theGxDevicePtr->ScenePresent();
|
GxScenePresent(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GxuFlushDrawList(EGxuDrawListCategory a1, const C3Vector& a2) {
|
void GxuFlushDrawList(EGxuDrawListCategory a1, const C3Vector& a2) {
|
||||||
|
@ -12,7 +12,9 @@ void GxDraw(CGxBatch* batch, int32_t indexed);
|
|||||||
|
|
||||||
void GxSceneClear(uint32_t, CImVector);
|
void GxSceneClear(uint32_t, CImVector);
|
||||||
|
|
||||||
void GxScenePresent(void);
|
void GxScenePresent(uint32_t a2);
|
||||||
|
|
||||||
|
void GxSub682A00();
|
||||||
|
|
||||||
void GxuFlushDrawList(EGxuDrawListCategory, const C3Vector&);
|
void GxuFlushDrawList(EGxuDrawListCategory, const C3Vector&);
|
||||||
|
|
||||||
|
@ -115,14 +115,14 @@ int32_t OnPaint(const void* a1, void* a2) {
|
|||||||
if (Screen::s_captureScreen) {
|
if (Screen::s_captureScreen) {
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
GxScenePresent();
|
GxSub682A00();
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
GxScenePresent();
|
GxSub682A00();
|
||||||
}
|
}
|
||||||
|
|
||||||
Screen::s_elapsedSec = 0.0f;
|
Screen::s_elapsedSec = 0.0f;
|
||||||
|
Loading…
Reference in New Issue
Block a user