evas: make partial update extention compile for every one in gl_x11 backend.

This commit is contained in:
Cedric BAIL 2014-07-05 12:50:21 +02:00
parent 4e6825d6ac
commit 914b529e38
2 changed files with 14 additions and 7 deletions

View File

@ -68,9 +68,6 @@ typedef const char *(*glsym_func_const_char_ptr) ();
#ifndef EGL_NATIVE_PIXMAP_KHR
# define EGL_NATIVE_PIXMAP_KHR 0x30b0
#endif
#ifndef EGL_BUFFER_AGE_EXT
# define EGL_BUFFER_AGE_EXT 0x313d
#endif
#ifndef EGL_Y_INVERTED_NOK
# define EGL_Y_INVERTED_NOK 0x307F
#endif
@ -85,10 +82,6 @@ unsigned int (*glsym_eglSwapBuffersWithDamage) (EGLDisplay a, void *b, const E
#else
#ifndef GLX_BACK_BUFFER_AGE_EXT
# define GLX_BACK_BUFFER_AGE_EXT 0x20f4
#endif
typedef XID (*glsym_func_xid) ();
_eng_fn (*glsym_glXGetProcAddress) (const char *a) = NULL;

View File

@ -125,12 +125,26 @@ extern int swap_buffer_debug_mode;
extern int swap_buffer_debug;
extern const char *debug_dir;
#ifdef GL_GLES
#ifndef EGL_BUFFER_AGE_EXT
# define EGL_BUFFER_AGE_EXT 0x313d
#endif
#else
#ifndef GLX_BACK_BUFFER_AGE_EXT
# define GLX_BACK_BUFFER_AGE_EXT 0x20f4
#endif
extern void (*glsym_glXQueryDrawable) (Display *a, XID b, int c, unsigned int *d);
extern void (*glsym_glXSwapIntervalEXT) (Display *s, GLXDrawable b, int c);
extern int (*glsym_glXSwapIntervalSGI) (int a);
extern int (*glsym_glXGetVideoSync) (unsigned int *a);
extern int (*glsym_glXWaitVideoSync) (int a, int b, unsigned int *c);
#endif
Outbuf *eng_window_new(Evas_Engine_Info_GL_X11 *info, Evas *e,
Display *disp, Window win, int screen,
Visual *vis, Colormap cmap,