From 598809b436bc6236a365d76967b08e2700f40779 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 10 Jun 2010 14:17:18 -0400 Subject: [PATCH] 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 --- openbox/composite.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.34.1