diff --git a/vlib/sokol/c/declaration.c.v b/vlib/sokol/c/declaration.c.v index 7800269108..fb5d1b85fa 100644 --- a/vlib/sokol/c/declaration.c.v +++ b/vlib/sokol/c/declaration.c.v @@ -13,8 +13,12 @@ pub const ( #flag windows -lgdi32 // METAL $if macos { - #flag -DSOKOL_METAL - #flag -framework Metal -framework Cocoa -framework MetalKit -framework QuartzCore + $if darwin_sokol_glcore33 ? { + #flag darwin -DSOKOL_GLCORE33 -framework OpenGL -framework Cocoa -framework QuartzCore + } $else { + #flag -DSOKOL_METAL + #flag -framework Metal -framework Cocoa -framework MetalKit -framework QuartzCore + } } $if ios { #flag -DSOKOL_METAL