Signed-off-by: Matteo Bruni mbruni@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;