aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/out/opengl/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/opengl/video.c')
-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;