From 5013108a7f81824b1a99a292f1798bed585f0bd7 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Sun, 22 Feb 2026 13:17:22 +0800 Subject: [PATCH] [Chore] (MG_Backend/DirectVulkan): get rid of unnecessary checks --- .../DirectVulkan/Renderer/UniformDescriptorBinder.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/MobileGL/MG_Backend/DirectVulkan/Renderer/UniformDescriptorBinder.cpp b/MobileGL/MG_Backend/DirectVulkan/Renderer/UniformDescriptorBinder.cpp index 5abfee54..de546996 100644 --- a/MobileGL/MG_Backend/DirectVulkan/Renderer/UniformDescriptorBinder.cpp +++ b/MobileGL/MG_Backend/DirectVulkan/Renderer/UniformDescriptorBinder.cpp @@ -585,10 +585,6 @@ namespace MobileGL::MG_Backend::DirectVulkan { outData.assign(m_maxBindings, nullptr); outSizes.assign(m_maxBindings, 0); - if (MG_State::pGLContext == nullptr) { - return false; - } - const Uint32 activeUniformBlockCount = static_cast(program.GetActiveUniformBlocksCount()); const Uint32 uniformBindingPointCount = static_cast(MG_State::pGLContext->GetBufferBindingPointCount(BufferTarget::Uniform));