glfw: fix glfw.Native usage on Linux
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
0c3046afd0
commit
cb06d18f74
1 changed files with 1 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ pub const BackendOptions = struct {
|
||||||
pub fn Native(comptime options: BackendOptions) type {
|
pub fn Native(comptime options: BackendOptions) type {
|
||||||
const native = @cImport({
|
const native = @cImport({
|
||||||
@cDefine("GLFW_INCLUDE_VULKAN", "1");
|
@cDefine("GLFW_INCLUDE_VULKAN", "1");
|
||||||
|
@cDefine("GLFW_INCLUDE_NONE", "1");
|
||||||
if (options.win32) @cDefine("GLFW_EXPOSE_NATIVE_WIN32", "1");
|
if (options.win32) @cDefine("GLFW_EXPOSE_NATIVE_WIN32", "1");
|
||||||
if (options.wgl) @cDefine("GLFW_EXPOSE_NATIVE_WGL", "1");
|
if (options.wgl) @cDefine("GLFW_EXPOSE_NATIVE_WGL", "1");
|
||||||
if (options.cocoa) @cDefine("GLFW_EXPOSE_NATIVE_COCOA", "1");
|
if (options.cocoa) @cDefine("GLFW_EXPOSE_NATIVE_COCOA", "1");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue