vo_opengl: add RGBA8 framebuffer format, enable non-dumb mode for ES 3.0

This makes advanced scaling sort-of work for GLES 3.0 (on ANGLE). It's
still not very advisable, as 8 bits might not be enough to avoid
debanding. (Ironically, the debanding filter can be enabled, and does
not raise any GL errors - but probably doesn't do anything useful.)
This commit is contained in:
wm4 2015-11-19 14:45:06 +01:00
parent f9a2fc592f
commit a6fb80baa4
1 changed files with 2 additions and 1 deletions

View File

@ -414,6 +414,7 @@ const struct m_sub_options gl_video_conf = {
({"rgb", GL_RGB},
{"rgba", GL_RGBA},
{"rgb8", GL_RGB8},
{"rgba8", GL_RGBA8},
{"rgb10", GL_RGB10},
{"rgb10_a2", GL_RGB10_A2},
{"rgb16", GL_RGB16},
@ -2364,7 +2365,7 @@ static void check_gl_features(struct gl_video *p)
MP_WARN(p, "Disabling PBOs (GLES unsupported).\n");
}
if (p->opts.dumb_mode || gl->es || !have_fbo || !test_fbo(p) || !have_texrg)
if (p->opts.dumb_mode || !have_fbo || !test_fbo(p) || !have_texrg)
{
if (!p->opts.dumb_mode) {
MP_WARN(p, "High bit depth FBOs unsupported. Enabling dumb mode.\n"