wined3d: Use the texture dimension helpers 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-04-11 18:34:42 +02:00 committed by Alexandre Julliard
parent 3a06ade1c4
commit 044b330ae1
1 changed files with 3 additions and 1 deletions

View File

@ -1729,7 +1729,9 @@ static void texture3d_prepare_texture(struct wined3d_texture *texture, struct wi
GL_EXTCALL(glTexImage3D(GL_TEXTURE_3D, volume->texture_level, GL_EXTCALL(glTexImage3D(GL_TEXTURE_3D, volume->texture_level,
srgb ? format->glGammaInternal : format->glInternal, srgb ? format->glGammaInternal : format->glInternal,
volume->resource.width, volume->resource.height, volume->resource.depth, wined3d_texture_get_level_width(texture, volume->texture_level),
wined3d_texture_get_level_height(texture, volume->texture_level),
wined3d_texture_get_level_depth(texture, volume->texture_level),
0, format->glFormat, format->glType, NULL)); 0, format->glFormat, format->glType, NULL));
checkGLcall("glTexImage3D"); checkGLcall("glTexImage3D");
} }