Specify the GLX_TEXTURE_TARGET_EXT when creating a glXPixmap
authorDana Jansens <danakj@orodu.net>
Thu, 10 Jun 2010 18:17:18 +0000 (14:17 -0400)
committerDana Jansens <danakj@orodu.net>
Sat, 26 Jun 2010 23:30:47 +0000 (01:30 +0200)
This is a workaround for non-spec drivers.  See issue #4 here: http://www.opengl.org/registry/specs/EXT/texture_from_pixmap.txt

A default should be chosen, but it is not.  We assume that GL_ARB_texture_non_power_of_two is present for now, and just always ask for a GL_TEXTURE_2D texture

openbox/composite.c

index 337044530f741b8e53cf23a994f40e308f13ef92..2c46144f1bb43dabb84bafa6ad258ac8b074b715 100644 (file)
@@ -336,6 +336,8 @@ static gboolean composite(gpointer data)
     int attribs[] = {
         GLX_TEXTURE_FORMAT_EXT,
         None,
+        GLX_TEXTURE_TARGET_EXT,
+        GLX_TEXTURE_2D_EXT,
         None
     };
     struct timeval start, end, dif;