citro3d: Let SDL3 take care of initiatizing/deinitializing GFX

This commit is contained in:
Joshua Peisach 2025-07-03 06:31:00 -04:00
parent 605163b755
commit 02027e154b
No known key found for this signature in database
GPG Key ID: 41C3D4189AFEDB5A

View File

@ -26,7 +26,7 @@ Citro3DRenderer::Citro3DRenderer(DWORD width, DWORD height)
m_virtualWidth = width;
m_virtualHeight = height;
gfxInitDefault();
gfxSetScreenFormat(GFX_BOTTOM, GSP_BGR8_OES);
consoleInit(GFX_TOP, nullptr);
C3D_Init(C3D_DEFAULT_CMDBUF_SIZE);
@ -66,7 +66,6 @@ Citro3DRenderer::~Citro3DRenderer()
shaderProgramFree(&program);
DVLB_Free(vshader_dvlb);
C3D_Fini();
gfxExit();
}
void Citro3DRenderer::PushLights(const SceneLight* lights, size_t count)