1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-31 17:45:35 +00:00

Merge branch 'fix_warning' into 'master'

Fix warning: -Wunused-lambda-capture

See merge request OpenMW/openmw!1899
This commit is contained in:
jvoisin 2022-05-21 18:17:37 +00:00
commit 8047a2138e

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());