From: Mikko Rasa Date: Sat, 16 Sep 2023 11:32:38 +0000 (+0300) Subject: Remove unnecessary scoping X-Git-Url: https://git.tdb.fi/?a=commitdiff_plain;h=531db8db225b617d13d54833307a9699554c7661;p=libs%2Fgl.git Remove unnecessary scoping This was confusing MSVC in a release build and it's not needed anyway. --- 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); }