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.
This commit is contained in:
wm4 2016-05-13 18:50:11 +02:00
parent f7c81c03b2
commit c9d8bc088c
1 changed files with 4 additions and 4 deletions

View File

@ -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.