[PATCH 4/5] wined3d: Prepare destination location in texture2d_read_from_framebuffer().

Matteo Bruni mbruni at codeweavers.com
Wed Mar 17 07:35:22 CDT 2021


Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
 dlls/wined3d/surface.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index d5d07d8c401..cb03b99fc97 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -422,6 +422,10 @@ void texture2d_read_from_framebuffer(struct wined3d_texture *texture, unsigned i
     unsigned int i;
     BYTE *mem;
 
+    TRACE("texture %p, sub_resource_idx %u, context %p, src_location %#x, dst_location %#x.\n",
+            texture, sub_resource_idx, context, src_location, dst_location);
+
+    wined3d_texture_prepare_location(texture, sub_resource_idx, context, dst_location);
     wined3d_texture_get_memory(texture, sub_resource_idx, &data, dst_location);
 
     restore_texture = context->current_rt.texture;
-- 
2.26.2




More information about the wine-devel mailing list