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:
Henri Verbeet 2016-03-02 19:24:15 +01:00 committed by Alexandre Julliard
parent aad8f74cc8
commit b309b831de
1 changed files with 1 additions and 1 deletions

View File

@ -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;