Moved X11-specific defines to X11 header.

This commit is contained in:
Camilla Berglund 2012-09-09 19:03:17 +02:00
parent dd69985649
commit 0ca1e67d7a
2 changed files with 2 additions and 3 deletions

View File

@ -57,9 +57,6 @@
#define _GLFW_PLATFORM_CONTEXT_STATE _GLFWcontextEGL EGL #define _GLFW_PLATFORM_CONTEXT_STATE _GLFWcontextEGL EGL
#define _GLFW_PLATFORM_LIBRARY_OPENGL_STATE _GLFWlibraryEGL EGL #define _GLFW_PLATFORM_LIBRARY_OPENGL_STATE _GLFWlibraryEGL EGL
#define _GLFW_EGL_NATIVE_WINDOW window->X11.handle
#define _GLFW_EGL_NATIVE_DISPLAY _glfwLibrary.X11.display
//======================================================================== //========================================================================
// GLFW platform specific types // GLFW platform specific types

View File

@ -56,6 +56,8 @@
#if defined(_GLFW_X11_GLX) #if defined(_GLFW_X11_GLX)
#include "x11_glx_platform.h" #include "x11_glx_platform.h"
#elif defined(_GLFW_X11_EGL) #elif defined(_GLFW_X11_EGL)
#define _GLFW_EGL_NATIVE_WINDOW window->X11.handle
#define _GLFW_EGL_NATIVE_DISPLAY _glfwLibrary.X11.display
#include "x11_egl_platform.h" #include "x11_egl_platform.h"
#endif #endif