From 531db8db225b617d13d54833307a9699554c7661 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 16 Sep 2023 14:32:38 +0300 Subject: [PATCH] Remove unnecessary scoping This was confusing MSVC in a release build and it's not needed anyway. --- source/core/pipelinestate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/pipelinestate.cpp b/source/core/pipelinestate.cpp index e971e369..fa6784f1 100644 --- a/source/core/pipelinestate.cpp +++ b/source/core/pipelinestate.cpp @@ -194,7 +194,7 @@ void PipelineState::check_bound_resources() const for(const ReflectData::BlockInfo &b: shprog->get_blocks()) if(b.bind_point!=ReflectData::DEFAULT_BLOCK) { - auto i = lower_bound_member(resources, b.bind_point, &PipelineState::BoundResource::binding); + auto i = lower_bound_member(resources, b.bind_point, &BoundResource::binding); if(i==resources.end() || i->binding!=b.bind_point) IO::print(IO::cerr, "Warning: No resource present for block binding %d:%d (%s)\n", b.bind_point>>20, b.bind_point&0xFFFFF, b.name); } @@ -202,7 +202,7 @@ void PipelineState::check_bound_resources() const for(const ReflectData::UniformInfo &u: shprog->get_uniforms()) if(u.binding>=0 && is_image(u.type)) { - auto i = lower_bound_member(resources, u.binding, &PipelineState::BoundResource::binding); + auto i = lower_bound_member(resources, u.binding, &BoundResource::binding); if(i==resources.end() || i->binding!=u.binding) IO::print(IO::cerr, "Warning: No resource present for texture binding %d:%d (%s)\n", u.binding>>20, u.binding&0xFFFFF, u.name); } -- 2.45.2