diff --git a/include/bgfxplatform.c99.h b/include/bgfxplatform.c99.h index 4a2174d9..b4f758bc 100644 --- a/include/bgfxplatform.c99.h +++ b/include/bgfxplatform.c99.h @@ -46,7 +46,7 @@ BGFX_C_API void bgfx_android_set_window(ANativeWindow* _window); */ BGFX_C_API void bgfx_ios_set_eagl_layer(void* _layer); -#elif BX_PLATFORM_LINUX +#elif BX_PLATFORM_LINUX || BX_PLATFORM_FREEBSD # include /** diff --git a/include/bgfxplatform.h b/include/bgfxplatform.h index 4b398a5e..a1261840 100755 --- a/include/bgfxplatform.h +++ b/include/bgfxplatform.h @@ -50,7 +50,7 @@ namespace bgfx } // namespace bgfx -#elif BX_PLATFORM_LINUX +#elif BX_PLATFORM_LINUX || BX_PLATFORM_FREEBSD # include namespace bgfx diff --git a/src/bgfx.cpp b/src/bgfx.cpp index a14373d4..c471f02c 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -3319,7 +3319,7 @@ BGFX_C_API void bgfx_ios_set_eagl_layer(void* _layer) bgfx::iosSetEaglLayer(_layer); } -#elif BX_PLATFORM_LINUX +#elif BX_PLATFORM_LINUX || BX_PLATFORM_FREEBSD BGFX_C_API void bgfx_x11_set_display_window(::Display* _display, ::Window _window) { bgfx::x11SetDisplayWindow(_display, _window); diff --git a/src/glcontext_glx.cpp b/src/glcontext_glx.cpp index 1a3e8fc7..f2a970fa 100644 --- a/src/glcontext_glx.cpp +++ b/src/glcontext_glx.cpp @@ -5,7 +5,7 @@ #include "bgfx_p.h" -#if BX_PLATFORM_LINUX & (BGFX_CONFIG_RENDERER_OPENGLES|BGFX_CONFIG_RENDERER_OPENGL) +#if (BX_PLATFORM_LINUX || BX_PLATFORM_FREEBSD) && (BGFX_CONFIG_RENDERER_OPENGLES || BGFX_CONFIG_RENDERER_OPENGL) # include "renderer_gl.h" # define GLX_GLXEXT_PROTOTYPES # include