summaryrefslogtreecommitdiff
path: root/run.c
diff options
context:
space:
mode:
Diffstat (limited to 'run.c')
-rw-r--r--run.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/run.c b/run.c
index 024c8e9..f6ce1bf 100644
--- a/run.c
+++ b/run.c
@@ -633,6 +633,12 @@ main(int argc, char **argv)
}
ctx_is_core = type == TYPE_CORE;
+ /* If there's only one shader, mark it separable so inputs
+ * and outputs aren't eliminated.
+ */
+ if (num_shaders == 1)
+ use_separate_shader_objects = true;
+
if (type == TYPE_CORE || type == TYPE_COMPAT) {
GLuint prog = glCreateProgram();