1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-04-01 23:06:41 +00:00

Fix warning: -Wunused-lambda-capture

This commit is contained in:
elsid 2022-05-21 18:17:36 +00:00 committed by jvoisin
parent 5fc530335b
commit 5269ba6f3c

View file

@ -36,7 +36,8 @@ config:
vec3_uniform: [1.0, 2.0]
)YAML";
withSettingsFile(content, [this] (const auto& path) {
withSettingsFile(content, [] (const auto& path)
{
EXPECT_TRUE(ShaderManager::get().load(path));
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)));
@ -56,7 +57,8 @@ config:
>Defeated by a sideways carrot
)YAML";
withSettingsFile(content, [this] (const auto& path) {
withSettingsFile(content, [] (const auto& path)
{
EXPECT_FALSE(ShaderManager::get().load(path));
EXPECT_FALSE(ShaderManager::get().setValue("shader", "uniform", 12.0));
EXPECT_FALSE(ShaderManager::get().getValue<float>("shader", "uniform").has_value());