summaryrefslogtreecommitdiffstats
path: root/video/out/gl_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/gl_utils.c')
-rw-r--r--video/out/gl_utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/gl_utils.c b/video/out/gl_utils.c
index 7881a6cf1f..9429655bd0 100644
--- a/video/out/gl_utils.c
+++ b/video/out/gl_utils.c
@@ -829,6 +829,8 @@ void gl_sc_gen_shader_and_reset(struct gl_shader_cache *sc)
ADD(frag, "#define texture1D texture\n");
ADD(frag, "#define texture3D texture\n");
ADD(frag, "out vec4 out_color;\n");
+ } else {
+ ADD(frag, "#define texture texture2D\n");
}
ADD(frag, "%s", frag_vaos);
for (int n = 0; n < sc->num_uniforms; n++) {