fix(gx): simplified gx device creation according to api enum

This commit is contained in:
phaneron 2024-07-22 01:21:08 -04:00
parent 45f23fb3ba
commit 1b4f1dba86
3 changed files with 34 additions and 31 deletions

View file

@ -122,7 +122,7 @@ pub fn build(b: *std.Build) void {
// GLSDL
const build_glsdl_option = b.option(bool, "WHOA_BUILD_GLSDL", "Enable");
switch (target.result.os) {
switch (t.os.tag) {
.windows => {
// SDL is off by default
build_glsdl = build_glsdl_option orelse false;