summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-05-13 18:50:11 +0200
committerwm4 <wm4@nowhere>2016-05-13 18:50:38 +0200
commitc9d8bc088c727b5a151f7845443aac079e8eb397 (patch)
tree9a9773fd2f39c51184bd76ff04c5c4d718fa0b38
parentf7c81c03b2e2eda45e547b98cd508b82da37c775 (diff)
downloadmpv-c9d8bc088c727b5a151f7845443aac079e8eb397.tar.bz2
mpv-c9d8bc088c727b5a151f7845443aac079e8eb397.tar.xz
vo_opengl: restrict ES2 FBO formats
Only a few very low bit depth internal formats can be rendered to in pure ES2 (GL_RGB565 is the "best" one). Seems like the only potentially reasonable renderable formats in ES2 could be provided via GL_OES_rgb8_rgba8, or half-floats, so don't bother with this at all.
-rw-r--r--video/out/opengl/formats.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/video/out/opengl/formats.c b/video/out/opengl/formats.c
index 36f76df459..b56da5ddc2 100644
--- a/video/out/opengl/formats.c
+++ b/video/out/opengl/formats.c
@@ -35,10 +35,10 @@ const struct gl_format gl_formats[] = {
{GL_RGBA16, GL_RGBA, T_U16, F_TF | F_GL2},
// ES2 legacy
- {GL_LUMINANCE, GL_LUMINANCE, T_U8, F_CF | F_ES2},
- {GL_LUMINANCE_ALPHA, GL_LUMINANCE_ALPHA, T_U8, F_CF | F_ES2},
- {GL_RGB, GL_RGB, T_U8, F_CF | F_ES2},
- {GL_RGBA, GL_RGBA, T_U8, F_CF | F_ES2},
+ {GL_LUMINANCE, GL_LUMINANCE, T_U8, F_TF | F_ES2},
+ {GL_LUMINANCE_ALPHA, GL_LUMINANCE_ALPHA, T_U8, F_TF | F_ES2},
+ {GL_RGB, GL_RGB, T_U8, F_TF | F_ES2},
+ {GL_RGBA, GL_RGBA, T_U8, F_TF | F_ES2},
// Non-normalized integer formats.
// Follows ES 3.0 as to which are color-renderable.