summaryrefslogtreecommitdiff
path: root/src/renderer/OpenGL.zig
diff options
context:
space:
mode:
authorXiaoYan Li <lxy.lixiaoyan@gmail.com>2024-12-28 03:43:31 +0800
committerMitchell Hashimoto <m@mitchellh.com>2024-12-28 19:37:24 -0800
commit28bbd526f2a40d761b04c21e0db26a1ad43cfddc (patch)
tree6e4d8b178c4f040ceaacea961247aaf24b82db68 /src/renderer/OpenGL.zig
parent2993d12de76d4870d568d002355e4c7ede7c8d5b (diff)
Fix the typing error when building on Linux
Co-authored-by: Gareth Widlansky <101901964+gerblesh@users.noreply.github.com>
Diffstat (limited to 'src/renderer/OpenGL.zig')
-rw-r--r--src/renderer/OpenGL.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/renderer/OpenGL.zig b/src/renderer/OpenGL.zig
index 0fe5538eb..1456ed3bb 100644
--- a/src/renderer/OpenGL.zig
+++ b/src/renderer/OpenGL.zig
@@ -2344,9 +2344,9 @@ fn drawCellProgram(
// Clear the surface
gl.clearColor(
- @as(f32, @floatFromInt(self.draw_background.r)) / 255 * self.config.background_opacity,
- @as(f32, @floatFromInt(self.draw_background.g)) / 255 * self.config.background_opacity,
- @as(f32, @floatFromInt(self.draw_background.b)) / 255 * self.config.background_opacity,
+ @floatCast(@as(f32, @floatFromInt(self.draw_background.r)) / 255 * self.config.background_opacity),
+ @floatCast(@as(f32, @floatFromInt(self.draw_background.g)) / 255 * self.config.background_opacity),
+ @floatCast(@as(f32, @floatFromInt(self.draw_background.b)) / 255 * self.config.background_opacity),
@floatCast(self.config.background_opacity),
);
gl.clear(gl.c.GL_COLOR_BUFFER_BIT);