Browse Source

Manually integrated some FreeBSD changes from @lye #132 pull request.

Branimir Karadžić 11 years ago
parent
commit
d525e96dd9
4 changed files with 4 additions and 4 deletions
  1. 1 1
      include/bgfxplatform.c99.h
  2. 1 1
      include/bgfxplatform.h
  3. 1 1
      src/bgfx.cpp
  4. 1 1
      src/glcontext_glx.cpp

+ 1 - 1
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 <X11/Xlib.h>
 
 /**

+ 1 - 1
include/bgfxplatform.h

@@ -50,7 +50,7 @@ namespace bgfx
 
 } // namespace bgfx
 
-#elif BX_PLATFORM_LINUX
+#elif BX_PLATFORM_LINUX || BX_PLATFORM_FREEBSD
 #	include <X11/Xlib.h>
 
 namespace bgfx

+ 1 - 1
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);

+ 1 - 1
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 <glx/glxext.h>