[Cogl] [PATCH] egl-x11: Don't use GLXDrawable on EGL

Damien Lespiau damien.lespiau at gmail.com
Fri Jul 27 06:40:12 PDT 2012


From: Damien Lespiau <damien.lespiau at intel.com>

Someone trying to compile cogl (ThijsNL on irc0 for the Rasberry Pi
stumbled into that one. GLXDrawable may not be defined in a pure EGL/X
environment.

Change it to Window, the type used for XConfigureEvent.window.
---
 cogl/winsys/cogl-winsys-egl-x11.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cogl/winsys/cogl-winsys-egl-x11.c b/cogl/winsys/cogl-winsys-egl-x11.c
index 4e264d5..1b02ac0 100644
--- a/cogl/winsys/cogl-winsys-egl-x11.c
+++ b/cogl/winsys/cogl-winsys-egl-x11.c
@@ -91,7 +91,7 @@ find_onscreen_for_xid (CoglContext *context, uint32_t xid)
 
 static void
 notify_resize (CoglContext *context,
-               GLXDrawable drawable,
+               Window drawable,
                int width,
                int height)
 {
-- 
1.7.7.5



More information about the Cogl mailing list