diff options
author | wm4 <wm4@nowhere> | 2015-03-13 12:22:18 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-03-13 12:22:18 +0100 |
commit | a38b85ce42408e740b24eeb51ada726d35c43b89 (patch) | |
tree | f3757cb41eab533605df95b2b7b8a82f238c3e4e /video/out | |
parent | aedea2a79f64f63ad8f8bd551625726d68d68d43 (diff) | |
download | mpv-a38b85ce42408e740b24eeb51ada726d35c43b89.tar.bz2 mpv-a38b85ce42408e740b24eeb51ada726d35c43b89.tar.xz |
vo_opengl: restore GL(ES) 2 compatibility
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/gl_utils.c | 2 |
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++) { |