[core] force explicit initialization of uniform values

force users to use the actual names to avoid implicit conversion accidentally targeting the wrong shader
This commit is contained in:
Konstantin Käfer
2016-11-03 12:07:13 +01:00
parent ed72581e0c
commit bd3d4bc89a
11 changed files with 113 additions and 113 deletions

View File

@@ -25,11 +25,11 @@ void Painter::renderTileDebug(const RenderTile& renderTile) {
gl::ColorMode::unblended(),
shaders->fill,
FillColorUniforms::Values {
renderTile.matrix,
1.0f,
color,
color,
context.viewport.getCurrentValue().size
uniforms::u_matrix::Value{ renderTile.matrix },
uniforms::u_opacity::Value{ 1.0f },
uniforms::u_color::Value{ color },
uniforms::u_outline_color::Value{ color },
uniforms::u_world::Value{ context.viewport.getCurrentValue().size },
},
subject
});