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));