]> git.tdb.fi Git - libs/gl.git/commitdiff
Remove unnecessary scoping
authorMikko Rasa <tdb@tdb.fi>
Sat, 16 Sep 2023 11:32:38 +0000 (14:32 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 16 Sep 2023 11:32:38 +0000 (14:32 +0300)
This was confusing MSVC in a release build and it's not needed anyway.

source/core/pipelinestate.cpp

index e971e36922ce9abf1fa5e0c5a277c43eace34734..fa6784f1f982f667f711453b63a76aff4406a850 100644 (file)
@@ -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);
                }