I came across a couple problems today while playing with clutter/test/test-pixmap.c -- the first was easy enough; it wasn't taking arguments as hex, so I changed the atol(argv[1]) to strtol(argv[1], NULL, 0) in clutter/tests/test-pixmap...

The second one took a bit more digging (I'm still finding my way around the code) -- but it appears that _gl_bind_tex_image wasn't being initialized correctly in clutter/glx/clutter-glx-texture-pixmap.c It looked like it should have been being called when the class was initialized, but wasn't. I'm not sure where the *right* place is to fix it; below is the hack I put in locally to make things work.

James

Index: clutter-glx-texture-pixmap.c
===================================================================
--- clutter-glx-texture-pixmap.c    (revision 3032)
+++ clutter-glx-texture-pixmap.c    (working copy)
@@ -569,6 +569,11 @@

      clutter_x11_trap_x_errors ();
+ if (!_gl_bind_tex_image) { + _gl_bind_tex_image = (BindTexImage)cogl_get_proc_address ("glXBindTexImageEXT"); + _gl_release_tex_image = (ReleaseTexImage)cogl_get_proc_address ("glXReleaseTexImageEXT");
+      }
+
      (_gl_bind_tex_image) (dpy,
                            priv->glx_pixmap,
                            GLX_FRONT_LEFT_EXT,


--
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to