- Fix possible crash that can occur when switching off the 3D renderer after changing the framebuffer size.
This commit is contained in:
rogerman 2016-02-23 19:31:50 +00:00
parent dc53f97d17
commit 45f6ca71cc
1 changed files with 1 additions and 0 deletions

View File

@ -5649,6 +5649,7 @@ void GPUSubsystem::SetCustomFramebufferSize(size_t w, size_t h, u16 *clientNativ
this->_engineMain->SetCustomFramebufferSize(w, h); this->_engineMain->SetCustomFramebufferSize(w, h);
this->_engineSub->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); CurrentRenderer->SetFramebufferSize(w, h);
if (this->_displayInfo.didPerformCustomRender[NDSDisplayID_Main]) if (this->_displayInfo.didPerformCustomRender[NDSDisplayID_Main])