wined3d: Avoid surface_from_resource() in texture2d_prepare_texture().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
aad8f74cc8
commit
b309b831de
|
@ -868,7 +868,7 @@ static void texture2d_prepare_texture(struct wined3d_texture *texture, struct wi
|
|||
|
||||
for (i = 0; i < sub_count; ++i)
|
||||
{
|
||||
struct wined3d_surface *surface = surface_from_resource(texture->sub_resources[i].resource);
|
||||
struct wined3d_surface *surface = texture->sub_resources[i].u.surface;
|
||||
GLsizei height = surface->pow2Height;
|
||||
GLsizei width = surface->pow2Width;
|
||||
|
||||
|
|
Loading…
Reference in New Issue