From 3b6ced47c76752b6631e5ce3689a5fe666a60b9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 27 Oct 2015 11:11:19 +0100 Subject: [PATCH] mesa: set the texture target in VDPAUMapSurfacesNV This is required since 7d7dd1871174905dfdd3ca874a09d9. --- src/mesa/main/vdpau.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/main/vdpau.c b/src/mesa/main/vdpau.c index 0efa56e..0c000c4 100644 --- a/src/mesa/main/vdpau.c +++ b/src/mesa/main/vdpau.c @@ -375,6 +375,9 @@ _mesa_VDPAUMapSurfacesNV(GLsizei numSurfaces, const GLintptr *surfaces) return; } + tex->Target = surf->target; + tex->TargetIndex = _mesa_tex_target_to_index(ctx, surf->target); + ctx->Driver.FreeTextureImageBuffer(ctx, image); ctx->Driver.VDPAUMapSurface(ctx, surf->target, surf->access, -- 2.1.4