gl-renderer: move all EGL_PLATFORM_* defines here

Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
Jonny Lamb 2015-03-24 13:12:02 +01:00 committed by Pekka Paalanen
parent 445fb697a5
commit a3e6a4a87a
4 changed files with 12 additions and 12 deletions

View file

@ -68,10 +68,6 @@
#define GBM_BO_USE_CURSOR GBM_BO_USE_CURSOR_64X64
#endif
#ifndef EGL_PLATFORM_GBM_KHR
#define EGL_PLATFORM_GBM_KHR 0x31D7
#endif
static int option_current_mode = 0;
enum output_config {

View file

@ -47,10 +47,6 @@
#define WINDOW_TITLE "Weston Compositor"
#ifndef EGL_PLATFORM_WAYLAND_KHR
#define EGL_PLATFORM_WAYLAND_KHR 0x31D8
#endif
struct wayland_compositor {
struct weston_compositor base;

View file

@ -55,10 +55,6 @@
#define DEFAULT_AXIS_STEP_DISTANCE wl_fixed_from_int(10)
#ifndef EGL_PLATFORM_X11_KHR
#define EGL_PLATFORM_X11_KHR 0x31D5
#endif
static int option_width;
static int option_height;
static int option_scale;

View file

@ -39,6 +39,18 @@ typedef intptr_t EGLNativeDisplayType;
typedef intptr_t EGLNativeWindowType;
#define EGL_DEFAULT_DISPLAY ((EGLNativeDisplayType)0)
#endif /* ENABLE_EGL */
#ifndef EGL_PLATFORM_GBM_KHR
#define EGL_PLATFORM_GBM_KHR 0x31D7
#endif
#ifndef EGL_PLATFORM_WAYLAND_KHR
#define EGL_PLATFORM_WAYLAND_KHR 0x31D8
#endif
#ifndef EGL_PLATFORM_X11_KHR
#define EGL_PLATFORM_X11_KHR 0x31D5
#endif
enum gl_renderer_border_side {