[Mesa-dev] [PATCH] [demos] fix direct rendering context in glxinfo

Marc Dietrich marvin24 at gmx.de
Tue Jul 22 01:35:40 PDT 2014


commit e769bc682b4a0d0f597286b067f54f923d159866 broke direct rendering
context because it defaults to indirect rendering and there is no way
to reverse it.

Signed-of-by: Marc Dietrich <marvin24 at gmx.de>
---
 src/xdemos/glinfo_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xdemos/glinfo_common.c b/src/xdemos/glinfo_common.c
index 95ef545..f536e98 100644
--- a/src/xdemos/glinfo_common.c
+++ b/src/xdemos/glinfo_common.c
@@ -747,7 +747,7 @@ parse_args(int argc, char *argv[], struct options *options)
    options->limits = GL_FALSE;
    options->singleLine = GL_FALSE;
    options->displayName = NULL;
-   options->allowDirect = GL_FALSE;
+   options->allowDirect = GL_TRUE;
 
    for (i = 1; i < argc; i++) {
 #ifndef _WIN32
-- 
2.0.1



More information about the mesa-dev mailing list