wined3d: Avoid volume_from_resource() in texture3d_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:17 +01:00 committed by Alexandre Julliard
parent c059191e0f
commit 09c862b6a2
1 changed files with 1 additions and 1 deletions

View File

@ -1207,7 +1207,7 @@ static void texture3d_prepare_texture(struct wined3d_texture *texture, struct wi
for (i = 0; i < sub_count; ++i)
{
struct wined3d_volume *volume = volume_from_resource(texture->sub_resources[i].resource);
struct wined3d_volume *volume = texture->sub_resources[i].u.volume;
GL_EXTCALL(glTexImage3D(GL_TEXTURE_3D, volume->texture_level,
srgb ? format->glGammaInternal : format->glInternal,