From 45f6ca71cc90ff1899329afbfbc15add75cc6d8c Mon Sep 17 00:00:00 2001 From: rogerman Date: Tue, 23 Feb 2016 19:31:50 +0000 Subject: [PATCH] GPU: - Fix possible crash that can occur when switching off the 3D renderer after changing the framebuffer size. --- desmume/src/GPU.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/desmume/src/GPU.cpp b/desmume/src/GPU.cpp index c4b094e9d..7633b40b8 100644 --- a/desmume/src/GPU.cpp +++ b/desmume/src/GPU.cpp @@ -5649,6 +5649,7 @@ void GPUSubsystem::SetCustomFramebufferSize(size_t w, size_t h, u16 *clientNativ this->_engineMain->SetCustomFramebufferSize(w, h); this->_engineSub->SetCustomFramebufferSize(w, h); + BaseRenderer->SetFramebufferSize(w, h); // Since BaseRenderer is persistent, we need to update this manually. CurrentRenderer->SetFramebufferSize(w, h); if (this->_displayInfo.didPerformCustomRender[NDSDisplayID_Main])