mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-18 13:06:45 +00:00
Fix warning: -Wunused-lambda-capture
This commit is contained in:
parent
5fc530335b
commit
5269ba6f3c
1 changed files with 4 additions and 2 deletions
|
@ -36,7 +36,8 @@ config:
|
||||||
vec3_uniform: [1.0, 2.0]
|
vec3_uniform: [1.0, 2.0]
|
||||||
)YAML";
|
)YAML";
|
||||||
|
|
||||||
withSettingsFile(content, [this] (const auto& path) {
|
withSettingsFile(content, [] (const auto& path)
|
||||||
|
{
|
||||||
EXPECT_TRUE(ShaderManager::get().load(path));
|
EXPECT_TRUE(ShaderManager::get().load(path));
|
||||||
EXPECT_FALSE(ShaderManager::get().getValue<osg::Vec3f>("shader", "vec3_uniform").has_value());
|
EXPECT_FALSE(ShaderManager::get().getValue<osg::Vec3f>("shader", "vec3_uniform").has_value());
|
||||||
EXPECT_TRUE(ShaderManager::get().setValue<osg::Vec3f>("shader", "vec3_uniform", osg::Vec3f(1, 2, 3)));
|
EXPECT_TRUE(ShaderManager::get().setValue<osg::Vec3f>("shader", "vec3_uniform", osg::Vec3f(1, 2, 3)));
|
||||||
|
@ -56,7 +57,8 @@ config:
|
||||||
>Defeated by a sideways carrot
|
>Defeated by a sideways carrot
|
||||||
)YAML";
|
)YAML";
|
||||||
|
|
||||||
withSettingsFile(content, [this] (const auto& path) {
|
withSettingsFile(content, [] (const auto& path)
|
||||||
|
{
|
||||||
EXPECT_FALSE(ShaderManager::get().load(path));
|
EXPECT_FALSE(ShaderManager::get().load(path));
|
||||||
EXPECT_FALSE(ShaderManager::get().setValue("shader", "uniform", 12.0));
|
EXPECT_FALSE(ShaderManager::get().setValue("shader", "uniform", 12.0));
|
||||||
EXPECT_FALSE(ShaderManager::get().getValue<float>("shader", "uniform").has_value());
|
EXPECT_FALSE(ShaderManager::get().getValue<float>("shader", "uniform").has_value());
|
||||||
|
|
Loading…
Reference in a new issue