mirror of
https://github.com/mpv-player/mpv
synced 2025-01-14 02:51:26 +00:00
vo_opengl: default to rgba16f FBOs on ANGLE
Although it has only 1 bit more precission than rgba10_a2, it was reported to improve the visual quality.
This commit is contained in:
parent
d8aeeaa4b1
commit
fc3ca14ef7
@ -832,8 +832,8 @@ Available video output drivers are:
|
|||||||
influence performance and quality of the video output.
|
influence performance and quality of the video output.
|
||||||
``fmt`` can be one of: rgb, rgba, rgb8, rgb10, rgb10_a2, rgb16, rgb16f,
|
``fmt`` can be one of: rgb, rgba, rgb8, rgb10, rgb10_a2, rgb16, rgb16f,
|
||||||
rgb32f, rgba12, rgba16, rgba16f, rgba32f.
|
rgb32f, rgba12, rgba16, rgba16f, rgba32f.
|
||||||
Default: ``auto``, which maps to rgba16 on desktop GL, and rgb10_a2 on
|
Default: ``auto``, which maps to rgba16 on desktop GL, and rgba16f or
|
||||||
GLES (e.g. ANGLE).
|
rgb10_a2 on GLES (e.g. ANGLE).
|
||||||
|
|
||||||
``gamma=<0.1..2.0>``
|
``gamma=<0.1..2.0>``
|
||||||
Set a gamma value (default: 1.0). If gamma is adjusted in other ways
|
Set a gamma value (default: 1.0). If gamma is adjusted in other ways
|
||||||
|
@ -2421,8 +2421,11 @@ static void check_gl_features(struct gl_video *p)
|
|||||||
bool have_texrg = gl->mpgl_caps & MPGL_CAP_TEX_RG;
|
bool have_texrg = gl->mpgl_caps & MPGL_CAP_TEX_RG;
|
||||||
|
|
||||||
if (have_fbo) {
|
if (have_fbo) {
|
||||||
if (!p->opts.fbo_format)
|
if (!p->opts.fbo_format) {
|
||||||
p->opts.fbo_format = gl->es ? GL_RGB10_A2 : GL_RGBA16;
|
p->opts.fbo_format = GL_RGBA16;
|
||||||
|
if (gl->es)
|
||||||
|
p->opts.fbo_format = have_float_tex ? GL_RGBA16F : GL_RGB10_A2;
|
||||||
|
}
|
||||||
have_fbo = test_fbo(p);
|
have_fbo = test_fbo(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user