glfw: force init in clipboard.zig
This commit is contained in:
parent
400e86888b
commit
fba8bb1cb2
2 changed files with 16 additions and 4 deletions
|
|
@ -1,6 +1,8 @@
|
|||
const std = @import("std");
|
||||
const zig_builtin = @import("builtin");
|
||||
|
||||
// TODO: Consider if this idea could also be applied to prevent 'PlatformError'
|
||||
|
||||
const debug_mode = (zig_builtin.mode == .Debug);
|
||||
var glfw_initialized = if (debug_mode) false else @as(void, {});
|
||||
pub inline fn toggleInitialized() void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue