summaryrefslogtreecommitdiff
path: root/gl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl.c')
-rw-r--r--gl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gl.c b/gl.c
index 3b3bfdd..31cbe96 100644
--- a/gl.c
+++ b/gl.c
@@ -135,9 +135,10 @@ static int glsl_version(void) {
case 210: return 120;
case 300: return 130;
case 310: return 140;
- case 320: return 150;
}
- return v;
+ // not going any later than GLSL 150 since
+ // then we don't have gl_FragColor
+ return 150;
}
// compile a GLSL shader