From a6fb80baa488516d463d92a3ebc619a62e3fb6cc Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 19 Nov 2015 14:45:06 +0100 Subject: [PATCH] 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.) --- video/out/opengl/video.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index 6e9b7627d5..9bc3c61f6c 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -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"