|
@@ -1764,6 +1764,9 @@ void Graphics::CleanupRenderSurface(RenderSurface* surface)
|
|
|
if (!surface)
|
|
if (!surface)
|
|
|
return;
|
|
return;
|
|
|
|
|
|
|
|
|
|
+ // Flush pending FBO changes first if any
|
|
|
|
|
+ CommitFramebuffer();
|
|
|
|
|
+
|
|
|
unsigned currentFbo = impl_->boundFbo_;
|
|
unsigned currentFbo = impl_->boundFbo_;
|
|
|
|
|
|
|
|
// Go through all FBOs and clean up the surface from them
|
|
// Go through all FBOs and clean up the surface from them
|