summaryrefslogtreecommitdiff
path: root/pkg/opengl
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/opengl')
-rw-r--r--pkg/opengl/Program.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/opengl/Program.zig b/pkg/opengl/Program.zig
index 3a2f2036a..824687e83 100644
--- a/pkg/opengl/Program.zig
+++ b/pkg/opengl/Program.zig
@@ -104,6 +104,7 @@ pub fn setUniform(
// Perform the correct call depending on the type of the value.
switch (@TypeOf(value)) {
+ bool => glad.context.Uniform1i.?(loc, if (value) 1 else 0),
comptime_int => glad.context.Uniform1i.?(loc, value),
f32 => glad.context.Uniform1f.?(loc, value),
@Vector(2, f32) => glad.context.Uniform2f.?(loc, value[0], value[1]),