Make check more strict in ApplyTextures

Signed-off-by: renderexpert <expert@renderconsulting.co.uk>
This commit is contained in:
renderexpert
2025-07-09 07:53:26 +01:00
committed by Konstantin Pastbin
parent 5a0ff536a7
commit da3053f5fc

View File

@@ -267,7 +267,7 @@ void TextureState::ApplyTextures(ref_ptr<GraphicsContext> context, RenderState c
descriptor.m_imageDescriptor.imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL;
auto const it = bindings.find(texture.first);
ASSERT(it != bindings.end(), ());
CHECK(it != bindings.end(), (texture.first, " is not found in the program", p->GetName()));
descriptor.m_textureSlot = it->second;
descriptor.m_id = texture.second->GetID();