mirror of https://github.com/mpv-player/mpv
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:
parent
f7c81c03b2
commit
c9d8bc088c
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue