From 1a893e8257236b3beca80c0f53d7b6b972fede5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ekstr=C3=B6m?= Date: Thu, 31 May 2018 23:46:08 +0300 Subject: gpu: prefer 16bit floating point FBO formats to 16bit integer ones According to earlier discussions, this can improve visual quality. This only changes the preferred order of the formats, not the formats themselves. --- video/out/gpu/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/gpu/video.c') diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c index 3fb460469d..7594c2b04a 100644 --- a/video/out/gpu/video.c +++ b/video/out/gpu/video.c @@ -3519,7 +3519,7 @@ static void check_gl_features(struct gl_video *p) bool have_ssbo = ra->caps & RA_CAP_BUF_RW; bool have_fragcoord = ra->caps & RA_CAP_FRAGCOORD; - const char *auto_fbo_fmts[] = {"rgba16", "rgba16f", "rgba16hf", + const char *auto_fbo_fmts[] = {"rgba16f", "rgba16hf", "rgba16", "rgb10_a2", "rgba8", 0}; const char *user_fbo_fmts[] = {p->opts.fbo_format, 0}; const char **fbo_fmts = user_fbo_fmts[0] && strcmp(user_fbo_fmts[0], "auto") -- cgit v1.2.3