glfw: force init in clipboard.zig

This commit is contained in:
InKryption 2021-11-21 15:53:19 +01:00 committed by Stephen Gutekanst
parent 400e86888b
commit fba8bb1cb2
2 changed files with 16 additions and 4 deletions

View file

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