summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index ff8328d5..d8921e7c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -314,6 +314,9 @@ main (int argc, char **argv)
}
else if (!strcmp (argv[i], "--indirect-rendering"))
{
+ /* force Mesa libGL into indirect rendering mode, because
+ glXQueryExtensionsString is context-independant */
+ setenv ("LIBGL_ALWAYS_INDIRECT", "1", True);
indirectRendering = TRUE;
}
else if (!strcmp (argv[i], "--loose-binding"))