Commit 6c7eeeee authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Use wined3d_texture_load_location() in surface_depth_blt_fbo().

parent 4ff6946b
...@@ -401,6 +401,7 @@ static void surface_depth_blt_fbo(const struct wined3d_device *device, ...@@ -401,6 +401,7 @@ static void surface_depth_blt_fbo(const struct wined3d_device *device,
struct wined3d_surface *dst_surface, DWORD dst_location, const RECT *dst_rect) struct wined3d_surface *dst_surface, DWORD dst_location, const RECT *dst_rect)
{ {
unsigned int dst_sub_resource_idx = surface_get_sub_resource_idx(dst_surface); unsigned int dst_sub_resource_idx = surface_get_sub_resource_idx(dst_surface);
unsigned int src_sub_resource_idx = surface_get_sub_resource_idx(src_surface);
struct wined3d_texture *dst_texture = dst_surface->container; struct wined3d_texture *dst_texture = dst_surface->container;
struct wined3d_texture *src_texture = src_surface->container; struct wined3d_texture *src_texture = src_surface->container;
const struct wined3d_gl_info *gl_info; const struct wined3d_gl_info *gl_info;
...@@ -448,9 +449,9 @@ static void surface_depth_blt_fbo(const struct wined3d_device *device, ...@@ -448,9 +449,9 @@ static void surface_depth_blt_fbo(const struct wined3d_device *device,
/* Make sure the locations are up-to-date. Loading the destination /* Make sure the locations are up-to-date. Loading the destination
* surface isn't required if the entire surface is overwritten. */ * surface isn't required if the entire surface is overwritten. */
surface_load_location(src_surface, context, src_location); wined3d_texture_load_location(src_texture, src_sub_resource_idx, context, src_location);
if (!surface_is_full_rect(dst_surface, dst_rect)) if (!surface_is_full_rect(dst_surface, dst_rect))
surface_load_location(dst_surface, context, dst_location); wined3d_texture_load_location(dst_texture, dst_sub_resource_idx, context, dst_location);
else else
wined3d_texture_prepare_location(dst_texture, dst_sub_resource_idx, context, dst_location); wined3d_texture_prepare_location(dst_texture, dst_sub_resource_idx, context, dst_location);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment