From ae94f329a9b1296bf740e85c888910f8483e21cd Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 15 Jul 2016 12:01:30 +0200 Subject: vo_opengl: hwdec: reset hw_subfmt field In theory, mp_image_params with hw_subfmt set to non-0 if imgfmt is not a hwaccel format is invalid. (It worked fine because nothing checks this yet.) --- video/out/opengl/hwdec_d3d11egl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'video/out/opengl/hwdec_d3d11egl.c') diff --git a/video/out/opengl/hwdec_d3d11egl.c b/video/out/opengl/hwdec_d3d11egl.c index 07333c372e..4360286064 100644 --- a/video/out/opengl/hwdec_d3d11egl.c +++ b/video/out/opengl/hwdec_d3d11egl.c @@ -255,6 +255,7 @@ static int reinit(struct gl_hwdec *hw, struct mp_image_params *params) goto fail; params->imgfmt = params->hw_subfmt; + params->hw_subfmt = 0; for (int n = 0; n < num_planes; n++) { gl->ActiveTexture(GL_TEXTURE0 + texunits + n); -- cgit v1.2.3