diff options
author | wm4 <wm4@nowhere> | 2015-11-19 14:45:06 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-11-19 14:45:06 +0100 |
commit | a6fb80baa488516d463d92a3ebc619a62e3fb6cc (patch) | |
tree | 0338eb25056af5d009c73ed975eb856cf396e998 | |
parent | f9a2fc592f1133174e7417121c6ae8212a696fb0 (diff) |
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.)
-rw-r--r-- | video/out/opengl/video.c | 3 |
1 files changed, 2 insertions, 1 deletions
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" |