From 01d04b100f8d40f6cd48ab86e5f18538f4ec3fdd Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 11 May 2016 17:39:38 +0200 Subject: vo_opengl: don't use dumb-mode with 10 bit integer texture hack Recent regression. Caused it to use dumb-mode with integer textures, which on ANGLE leads to nearest scaling. --- video/out/opengl/video.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index c636d12135..8252c55a63 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -875,8 +875,6 @@ static void init_video(struct gl_video *p) { GL *gl = p->gl; - check_gl_features(p); - if (p->hwdec && p->hwdec->driver->imgfmt == p->image_params.imgfmt) { if (p->hwdec->driver->reinit(p->hwdec, &p->image_params) < 0) MP_ERR(p, "Initializing texture for hardware decoding failed.\n"); @@ -886,6 +884,9 @@ static void init_video(struct gl_video *p) init_format(p, p->image_params.imgfmt, false); } + // Format-dependent checks. + check_gl_features(p); + mp_image_params_guess_csp(&p->image_params); int eq_caps = MP_CSP_EQ_CAPS_GAMMA; -- cgit v1.2.3