GPU: Rebuild FBOs when they now have storage.

This commit is contained in:
Unknown W. Brackets 2017-04-24 01:05:58 -07:00
parent 1a58629cfb
commit 97620d4cca
5 changed files with 6 additions and 6 deletions

View File

@ -142,7 +142,7 @@ void FramebufferManagerCommon::Init() {
bool FramebufferManagerCommon::UpdateSize() {
const bool newRender = renderWidth_ != (float)PSP_CoreParameter().renderWidth || renderHeight_ != (float)PSP_CoreParameter().renderHeight;
const bool newSettings = bloomHack_ != g_Config.iBloomHack || trueColor_ != g_Config.bTrueColor;
const bool newSettings = bloomHack_ != g_Config.iBloomHack || trueColor_ != g_Config.bTrueColor || useBufferedRendering_ != (g_Config.iRenderingMode != FB_NON_BUFFERED_MODE);
renderWidth_ = (float)PSP_CoreParameter().renderWidth;
renderHeight_ = (float)PSP_CoreParameter().renderHeight;
@ -150,6 +150,7 @@ bool FramebufferManagerCommon::UpdateSize() {
pixelHeight_ = PSP_CoreParameter().pixelHeight;
bloomHack_ = g_Config.iBloomHack;
trueColor_ = g_Config.bTrueColor;
useBufferedRendering_ = g_Config.iRenderingMode != FB_NON_BUFFERED_MODE;
return newRender || newSettings;
}
@ -157,7 +158,6 @@ bool FramebufferManagerCommon::UpdateSize() {
void FramebufferManagerCommon::BeginFrame() {
DecimateFBOs();
currentRenderVfb_ = 0;
useBufferedRendering_ = g_Config.iRenderingMode != FB_NON_BUFFERED_MODE;
updateVRAM_ = !(g_Config.iRenderingMode == FB_NON_BUFFERED_MODE || g_Config.iRenderingMode == FB_BUFFERED_MODE);
}

View File

@ -889,7 +889,7 @@ void FramebufferManagerD3D11::EndFrame() {
PSP_CoreParameter().renderHeight = 272 * zoom;
}
if (UpdateSize() || g_Config.iRenderingMode == FB_NON_BUFFERED_MODE) {
if (UpdateSize()) {
DestroyAllFBOs();
}

View File

@ -776,7 +776,7 @@ static const D3DVERTEXELEMENT9 g_FramebufferVertexElements[] = {
PSP_CoreParameter().renderHeight = 272 * zoom;
}
if (UpdateSize() || g_Config.iRenderingMode == FB_NON_BUFFERED_MODE) {
if (UpdateSize()) {
DestroyAllFBOs();
}
// Seems related - if you're ok with numbers all the time, show some more :)

View File

@ -1180,7 +1180,7 @@ void FramebufferManagerGLES::EndFrame() {
PSP_CoreParameter().renderHeight = 272 * zoom;
}
if (UpdateSize() || g_Config.iRenderingMode == FB_NON_BUFFERED_MODE) {
if (UpdateSize()) {
DestroyAllFBOs();
}

View File

@ -1070,7 +1070,7 @@ void FramebufferManagerVulkan::EndFrame() {
PSP_CoreParameter().renderHeight = 272 * zoom;
}
if (UpdateSize() || g_Config.iRenderingMode == FB_NON_BUFFERED_MODE) {
if (UpdateSize()) {
DestroyAllFBOs();
}