summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
Diffstat (limited to 'video/out')
-rw-r--r--video/out/opengl/hwdec_d3d11egl.c4
-rw-r--r--video/out/opengl/hwdec_d3d11eglrgb.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/video/out/opengl/hwdec_d3d11egl.c b/video/out/opengl/hwdec_d3d11egl.c
index 1e0af02793..f2607f62f0 100644
--- a/video/out/opengl/hwdec_d3d11egl.c
+++ b/video/out/opengl/hwdec_d3d11egl.c
@@ -279,8 +279,8 @@ static int map_frame(struct gl_hwdec *hw, struct mp_image *hw_image,
if (!p->gl_textures[0])
return -1;
- ID3D11Texture2D *d3d_tex = (void *)hw_image->planes[1];
- int d3d_subindex = (intptr_t)hw_image->planes[2];
+ ID3D11Texture2D *d3d_tex = (void *)hw_image->planes[0];
+ int d3d_subindex = (intptr_t)hw_image->planes[1];
if (!d3d_tex)
return -1;
diff --git a/video/out/opengl/hwdec_d3d11eglrgb.c b/video/out/opengl/hwdec_d3d11eglrgb.c
index 31e63eb8da..cb49496c5f 100644
--- a/video/out/opengl/hwdec_d3d11eglrgb.c
+++ b/video/out/opengl/hwdec_d3d11eglrgb.c
@@ -203,7 +203,7 @@ static int map_frame(struct gl_hwdec *hw, struct mp_image *hw_image,
if (!p->gl_texture)
return -1;
- ID3D11Texture2D *d3d_tex = (void *)hw_image->planes[1];
+ ID3D11Texture2D *d3d_tex = (void *)hw_image->planes[0];
if (!d3d_tex)
return -1;