mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 06:08:30 +09:00
[Optimization] (Diligent/Framebuffer): explicitly unbind framebuffer on texture copy (BlitFramebuffer)
This commit is contained in:
@@ -521,6 +521,9 @@ namespace MG_GL::GL {
|
|||||||
// MG_Diligent::IsInRenderPass = false;
|
// MG_Diligent::IsInRenderPass = false;
|
||||||
// MG_Util::Debug::LogD("Current render pass ended.");
|
// MG_Util::Debug::LogD("Current render pass ended.");
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
// explicitly unbind the texture
|
||||||
|
MG_Diligent::g_pContext->SetRenderTargets(0, nullptr, nullptr, Diligent::RESOURCE_STATE_TRANSITION_MODE_NONE);
|
||||||
|
|
||||||
GLuint readFB = MG_State_T::framebufferState->currentBindings_[GL_READ_FRAMEBUFFER];
|
GLuint readFB = MG_State_T::framebufferState->currentBindings_[GL_READ_FRAMEBUFFER];
|
||||||
GLuint drawFB = MG_State_T::framebufferState->currentBindings_[GL_DRAW_FRAMEBUFFER];
|
GLuint drawFB = MG_State_T::framebufferState->currentBindings_[GL_DRAW_FRAMEBUFFER];
|
||||||
|
|||||||
Reference in New Issue
Block a user