Fix compiler errors

This commit is contained in:
SeanOMik 2021-11-28 13:07:06 -05:00
parent d6f251d6b8
commit 7687b0d1c8
1 changed files with 2 additions and 2 deletions

View File

@ -41,10 +41,10 @@ namespace simpleengine::shapes_2d {
// If theres a texture set, tell the fragment shader that and bind to the texture for drawing.
if (texture.has_value()) {
shader.setUniformInt("texture_is_set", true, false);
shader.set_uniform_int("texture_is_set", true, false);
texture.value().bind();
} else {
shader.setUniformInt("texture_is_set", false, false);
shader.set_uniform_int("texture_is_set", false, false);
}
vao.bind();