Minor cleanups

This commit is contained in:
Henrik Rydgård committed 2023-12-10 12:37:35 +01:00
1 parent 653b19ae53
commit 600fb7cc22
3 files changed
+7 -5

No files matched your search

+5 -1
View File
@@ -956,6 +956,7 @@ void NativeShutdownGraphics() {
if (g_screenManager) {
g_screenManager->deviceLost();
}
g_iconCache.ClearTextures();
if (gpu)
gpu->DeviceLost();
@@ -1104,7 +1105,6 @@ void NativeFrame(GraphicsContext *graphicsContext) {
Achievements::Idle();
g_DownloadManager.Update();
g_screenManager->update();
g_Discord.Update();
g_BackgroundAudio.Play();
@@ -1124,6 +1124,10 @@ void NativeFrame(GraphicsContext *graphicsContext) {
g_BackgroundAudio.Update();
}
g_iconCache.FrameUpdate();
g_screenManager->update();
// Apply the UIContext bounds as a 2D transformation matrix.
// TODO: This should be moved into the draw context...
Matrix4x4 ortho = ComputeOrthoMatrix(g_display.dp_xres, g_display.dp_yres);