[Chore] (MG_Backend/DirectVulkan): hard assert instead of silently fallback

This commit is contained in:
2026-02-22 12:08:31 +08:00
parent dae3dd9996
commit e9fee1358d
3 changed files with 23 additions and 27 deletions
@@ -90,9 +90,7 @@ namespace MobileGL::MG_Backend::DirectVulkan {
Bool VkTextureSamplerManager::SyncTextureAndGetDescriptor(const MG_State::GLState::ITextureObject& texture,
const MG_State::GLState::SamplerObject* samplerOverride,
VkDescriptorImageInfo& outImageInfo) {
if (m_device == VK_NULL_HANDLE) {
return GetFallbackDescriptor(outImageInfo);
}
MOBILEGL_ASSERT(m_device != VK_NULL_HANDLE, "SyncTextureAndGetDescriptor: m_device == VK_NULL_HANDLE");
auto it = m_textureResources.find(texture.GetExternalIndex());
if (it == m_textureResources.end()) {