From 3e7d64b5ce965070ca361d1f8d94cfb157faddad Mon Sep 17 00:00:00 2001 From: Qwerasd Date: Fri, 20 Jun 2025 15:45:43 -0600 Subject: [PATCH] style(renderer): explicit empty error set for OpenGL init --- src/renderer/OpenGL.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/renderer/OpenGL.zig b/src/renderer/OpenGL.zig index 1d1b41f0e..584d3cf9d 100644 --- a/src/renderer/OpenGL.zig +++ b/src/renderer/OpenGL.zig @@ -47,7 +47,10 @@ blending: configpkg.Config.AlphaBlending, /// The most recently presented target, in case we need to present it again. last_target: ?Target = null, -pub fn init(alloc: Allocator, opts: rendererpkg.Options) !OpenGL { +/// NOTE: This is an error{}!OpenGL instead of just OpenGL for parity with +/// Metal, since it needs to be fallible so does this, even though it +/// can't actually fail. +pub fn init(alloc: Allocator, opts: rendererpkg.Options) error{}!OpenGL { return .{ .alloc = alloc, .blending = opts.config.blending,