mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-18 07:23:24 +09:00
[MG_Backend] (Disaggregated): validate wire framebuffer identity without frontend getters
This commit is contained in:
@@ -6439,6 +6439,12 @@ void main() {
|
|||||||
// the SAME draw-framebuffer binding the draw uses - see the assert below.
|
// the SAME draw-framebuffer binding the draw uses - see the assert below.
|
||||||
MOBILEGL_ASSERT(
|
MOBILEGL_ASSERT(
|
||||||
[&] {
|
[&] {
|
||||||
|
#if MOBILEGL_BUILD_DISAGGREGATED
|
||||||
|
if (MG_Config::Transport != MG_Config::TransportMode::Monolith) {
|
||||||
|
const auto* fbo = MG_Pipe::MGPipeApplier().DrawFramebuffer();
|
||||||
|
return isDefaultFbo == (fbo != nullptr && fbo->IsDefault);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
const auto& fbo =
|
const auto& fbo =
|
||||||
MGB_CTX->GetFramebufferBindingSlot(FramebufferTarget::Draw).GetBoundObject();
|
MGB_CTX->GetFramebufferBindingSlot(FramebufferTarget::Draw).GetBoundObject();
|
||||||
return isDefaultFbo == (fbo != nullptr && fbo->IsDefaultFramebuffer());
|
return isDefaultFbo == (fbo != nullptr && fbo->IsDefaultFramebuffer());
|
||||||
|
|||||||
Reference in New Issue
Block a user