summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"))