style(renderer): explicit empty error set for OpenGL init

pull/7620/head
Qwerasd 2025-06-20 15:45:43 -06:00
parent ea7a91e2ba
commit 3e7d64b5ce
1 changed files with 4 additions and 1 deletions

View File

@ -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,