From c9d8bc088c727b5a151f7845443aac079e8eb397 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 13 May 2016 18:50:11 +0200 Subject: [PATCH] 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. --- video/out/opengl/formats.c | 8 ++++---- 1 file 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.