summaryrefslogtreecommitdiff
path: root/gl.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-11-03 20:40:01 -0400
committerpommicket <pommicket@gmail.com>2022-11-03 20:40:01 -0400
commit9e0e836a5e0a01020dc830a4205bf0e6ee13d0ba (patch)
tree92916d4835bdd1c9747dfa99a80b3bc3834373d6 /gl.c
parent937364a6563eb0a2fe5775dc98011ae962807504 (diff)
oops turns out we don't actually support glsl 430
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