gl drm/x11: Fix compilation for EGL < 1.5
This is an attempt at fixing compilation for systems with old EGL headers (version < 1.5). Thanks Roy for the report!
This commit is contained in:
parent
9c82b3475f
commit
182418dc1c
|
@ -20,6 +20,10 @@
|
|||
|
||||
#define EVAS_GL_UPDATE_TILE_SIZE 16
|
||||
|
||||
#ifndef EGL_VERSION_1_5
|
||||
typedef intptr_t EGLAttrib;
|
||||
#endif
|
||||
|
||||
/* external variables */
|
||||
int _evas_engine_gl_drm_log_dom = -1;
|
||||
int _extn_have_buffer_age = 1;
|
||||
|
|
|
@ -155,6 +155,10 @@ _visuals_hash_index_get_from_info(Evas_Engine_Info_GL_X11 *info)
|
|||
# define EGL_PLATFORM_X11_KHR 0x31D5
|
||||
#endif
|
||||
|
||||
#ifndef EGL_VERSION_1_5
|
||||
typedef intptr_t EGLAttrib;
|
||||
#endif
|
||||
|
||||
static EGLDisplay *
|
||||
_x11_eglGetDisplay(Display *x11_display)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue