From a38b85ce42408e740b24eeb51ada726d35c43b89 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 13 Mar 2015 12:22:18 +0100 Subject: [PATCH] vo_opengl: restore GL(ES) 2 compatibility --- video/out/gl_utils.c | 2 ++ 1 file changed, 2 insertions(+) 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++) {