mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-08 21:37:58 +00:00
Make check more strict in ApplyTextures
Signed-off-by: renderexpert <expert@renderconsulting.co.uk>
This commit is contained in:
committed by
Konstantin Pastbin
parent
5a0ff536a7
commit
da3053f5fc
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user