summaryrefslogtreecommitdiffstats
path: root/video/out/opengl
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-05-11 17:39:38 +0200
committerwm4 <wm4@nowhere>2016-05-11 17:41:00 +0200
commit01d04b100f8d40f6cd48ab86e5f18538f4ec3fdd (patch)
tree2df9957fc5e3041c708f47b4379203d428d2f088 /video/out/opengl
parentfe540f4477408705531d175df437f20e2d91d504 (diff)
downloadmpv-01d04b100f8d40f6cd48ab86e5f18538f4ec3fdd.tar.bz2
mpv-01d04b100f8d40f6cd48ab86e5f18538f4ec3fdd.tar.xz
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.
Diffstat (limited to 'video/out/opengl')
-rw-r--r--video/out/opengl/video.c5
1 files 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;