From 12ef4c8ae0d5130f59fd774a649b3c55bf8f7a10 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 23 Dec 2015 23:29:32 +1000 Subject: [PATCH] OGL: Fix for black framebuffer when resolution/msaa mode changes --- Source/Core/VideoBackends/OGL/Render.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/VideoBackends/OGL/Render.cpp b/Source/Core/VideoBackends/OGL/Render.cpp index f0558828fe..081ec98485 100644 --- a/Source/Core/VideoBackends/OGL/Render.cpp +++ b/Source/Core/VideoBackends/OGL/Render.cpp @@ -1511,6 +1511,7 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, co OSD::AddMessage(StringFromFormat("%d Anti Aliasing samples selected, but only %d supported by your GPU.", s_last_multisamples, g_ogl_config.max_samples), 10000); } + g_framebuffer_manager.reset(); g_framebuffer_manager = std::make_unique(s_target_width, s_target_height, s_MSAASamples); PixelShaderManager::SetEfbScaleChanged();