From: Dana Jansens Date: Thu, 10 Jun 2010 18:17:18 +0000 (-0400) Subject: Specify the GLX_TEXTURE_TARGET_EXT when creating a glXPixmap X-Git-Tag: cgl~51 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=598809b436bc6236a365d76967b08e2700f40779;p=dana%2Fopenbox.git Specify the GLX_TEXTURE_TARGET_EXT when creating a glXPixmap 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 --- diff --git a/openbox/composite.c b/openbox/composite.c index 33704453..2c46144f 100644 --- a/openbox/composite.c +++ b/openbox/composite.c @@ -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;