Moved X11-specific defines to X11 header.

master
Camilla Berglund ago%!(EXTRA string=13 years)
parent dd69985649
commit 0ca1e67d7a
  1. 3
      src/x11_egl_platform.h
  2. 2
      src/x11_platform.h

@ -57,9 +57,6 @@
#define _GLFW_PLATFORM_CONTEXT_STATE _GLFWcontextEGL 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

@ -56,6 +56,8 @@
#if defined(_GLFW_X11_GLX)
#include "x11_glx_platform.h"
#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"
#endif

Loading…
Cancel
Save