diff options
author | wm4 <wm4@nowhere> | 2014-12-17 21:48:23 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-17 21:48:23 +0100 |
commit | 10befa26d952ac2c403da1adcb3d36c300af0567 (patch) | |
tree | 4560871956886679f1a0292cde3a50571f433280 /video/out/gl_video_shaders.glsl | |
parent | 07975877be410ed07d3110dc2a5350246360acd0 (diff) | |
download | mpv-10befa26d952ac2c403da1adcb3d36c300af0567.tar.bz2 mpv-10befa26d952ac2c403da1adcb3d36c300af0567.tar.xz |
vo_opengl: GLES 3 support
Tested with MESA on software emulation. Seems to work well, although the
default FBO format in opengl-hq disables most interesting features. I
have no idea how well it will work on real hardware (or if it does at
all).
Unfortunately, some features, including playback of 10 bit video, are
not supported. Not sure what to do about this.
GLES 2 or 1 do not work.
Diffstat (limited to 'video/out/gl_video_shaders.glsl')
-rw-r--r-- | video/out/gl_video_shaders.glsl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/gl_video_shaders.glsl b/video/out/gl_video_shaders.glsl index 6c588073ac..7f77be0421 100644 --- a/video/out/gl_video_shaders.glsl +++ b/video/out/gl_video_shaders.glsl @@ -27,6 +27,10 @@ // inserted at the beginning of all shaders #!section prelude +#ifdef GL_ES +precision mediump float; +#endif + // GLSL 1.20 compatibility layer // texture() should be assumed to always map to texture2D() #if __VERSION__ >= 130 |