diff --git a/internal/glfw/glfw/cocoa_platform_darwin.h b/internal/glfw/glfw/cocoa_platform_darwin.h index 8bafe5e15..65df4a835 100644 --- a/internal/glfw/glfw/cocoa_platform_darwin.h +++ b/internal/glfw/glfw/cocoa_platform_darwin.h @@ -76,7 +76,7 @@ typedef void* id; #include "posix_thread.h" #include "nsgl_context_darwin.h" #include "egl_context.h" -#include "./glfw/src/osmesa_context.h" +#include "osmesa_context.h" #define _glfw_dlopen(name) dlopen(name, RTLD_LAZY | RTLD_LOCAL) #define _glfw_dlclose(handle) dlclose(handle) diff --git a/internal/glfw/glfw/glfw/src/osmesa_context.h b/internal/glfw/glfw/osmesa_context.h similarity index 98% rename from internal/glfw/glfw/glfw/src/osmesa_context.h rename to internal/glfw/glfw/osmesa_context.h index 6462637f4..78f6f5752 100644 --- a/internal/glfw/glfw/glfw/src/osmesa_context.h +++ b/internal/glfw/glfw/osmesa_context.h @@ -25,6 +25,8 @@ // //======================================================================== +//go:build darwin || freebsd || linux || netbsd || openbsd + #define OSMESA_RGBA 0x1908 #define OSMESA_FORMAT 0x22 #define OSMESA_DEPTH_BITS 0x30 diff --git a/internal/glfw/glfw/x11_platform_linbsd.h b/internal/glfw/glfw/x11_platform_linbsd.h index 512209bcb..70124ee2b 100644 --- a/internal/glfw/glfw/x11_platform_linbsd.h +++ b/internal/glfw/glfw/x11_platform_linbsd.h @@ -130,7 +130,7 @@ typedef XRenderPictFormat* (* PFN_XRenderFindVisualFormat)(Display*,Visual const #include "xkb_unicode_linbsd.h" #include "glx_context_linbsd.h" #include "egl_context.h" -#include "./glfw/src/osmesa_context.h" +#include "osmesa_context.h" #define _glfw_dlopen(name) dlopen(name, RTLD_LAZY | RTLD_LOCAL) #define _glfw_dlclose(handle) dlclose(handle)