FreeBSD ifdefs.

This commit is contained in:
Branimir Karadžić 2014-08-06 21:53:32 -07:00
parent c16f7a0f1f
commit 8c55c8f8a9
3 changed files with 6 additions and 6 deletions

View file

@ -111,7 +111,7 @@ namespace bgfx
return false;
}
# if BX_PLATFORM_LINUX
# if BX_PLATFORM_LINUX || BX_PLATFORM_FREEBSD
x11SetDisplayWindow(wmi.info.x11.display, wmi.info.x11.window);
# elif BX_PLATFORM_OSX
osxSetNSWindow(wmi.info.cocoa.window);
@ -128,7 +128,7 @@ namespace bgfx
// If GLFW/glfw3.h is included before bgfxplatform.h we can enable GLFW3
// window interop convenience code.
# if BX_PLATFORM_LINUX
# if BX_PLATFORM_LINUX || BX_PLATFORM_FREEBSD
# define GLFW_EXPOSE_NATIVE_X11
# define GLFW_EXPOSE_NATIVE_GLX
# elif BX_PLATFORM_OSX
@ -144,7 +144,7 @@ namespace bgfx
{
inline void glfwSetWindow(GLFWwindow* _window)
{
# if BX_PLATFORM_LINUX
# if BX_PLATFORM_LINUX || BX_PLATFORM_FREEBSD
::Display* display = glfwGetX11Display();
::Window window = glfwGetX11Window(_window);
x11SetDisplayWindow(display, window);

View file

@ -233,4 +233,4 @@ namespace bgfx
} // namespace bgfx
#endif // BX_PLATFORM_LINUX & (BGFX_CONFIG_RENDERER_OPENGLES|BGFX_CONFIG_RENDERER_OPENGL)
#endif // (BX_PLATFORM_LINUX || BX_PLATFORM_FREEBSD) && (BGFX_CONFIG_RENDERER_OPENGLES || BGFX_CONFIG_RENDERER_OPENGL)

View file

@ -6,7 +6,7 @@
#ifndef BGFX_GLCONTEXT_GLX_H_HEADER_GUARD
#define BGFX_GLCONTEXT_GLX_H_HEADER_GUARD
#if BX_PLATFORM_LINUX
#if BX_PLATFORM_LINUX || BX_PLATFORM_FREEBSD
# include <X11/Xlib.h>
# include <GL/glx.h>
@ -35,6 +35,6 @@ namespace bgfx
};
} // namespace bgfx
#endif // BX_PLATFORM_LINUX
#endif // BX_PLATFORM_LINUX || BX_PLATFORM_FREEBSD
#endif // BGFX_GLCONTEXT_GLX_H_HEADER_GUARD