Permalink
Browse files

Clean up all the FBOs in DestroyAllFBOs. Missing any can have bad con…

…sequences after app switching on Android/Vulkan where we recreate stuff.
  • Loading branch information...
hrydgard committed Dec 1, 2017
1 parent 44b6300 commit f8b70fe1855d7ecf86b2f5f334a4510666840788
@@ -740,6 +740,8 @@ void FramebufferManagerD3D11::DestroyAllFBOs() {
}
tempFBOs_.clear();
SetNumExtraFBOs(0);
DisableState();
}
@@ -725,6 +725,9 @@ static const D3DVERTEXELEMENT9 g_FramebufferVertexElements[] = {
it->second.surface->Release();
}
offscreenSurfaces_.clear();
SetNumExtraFBOs(0);
DisableState();
}
@@ -1033,6 +1033,8 @@ void FramebufferManagerGLES::DestroyAllFBOs() {
}
tempFBOs_.clear();
SetNumExtraFBOs(0);
DisableState();
CHECK_GL_ERROR_IF_DEBUG();
}
@@ -612,6 +612,13 @@ void FramebufferManagerVulkan::DestroyAllFBOs() {
DestroyFramebuf(vfb);
}
bvfbs_.clear();
for (auto it = tempFBOs_.begin(), end = tempFBOs_.end(); it != end; ++it) {
it->second.fbo->Release();
}
tempFBOs_.clear();
SetNumExtraFBOs(0);
}
void FramebufferManagerVulkan::Resized() {

0 comments on commit f8b70fe

Please sign in to comment.