d3dx9: Use check_texture_requirements() in D3DXCheckCubeTextureRequirements() with correct resource type.
Signed-off-by: Paul Gofman <gofmanp@gmail.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
92c8c0fc7f
commit
e50873f504
|
@ -450,7 +450,7 @@ HRESULT WINAPI D3DXCheckCubeTextureRequirements(struct IDirect3DDevice9 *device,
|
||||||
if ((caps.TextureCaps & D3DPTEXTURECAPS_CUBEMAP_POW2) && (!is_pow2(s)))
|
if ((caps.TextureCaps & D3DPTEXTURECAPS_CUBEMAP_POW2) && (!is_pow2(s)))
|
||||||
s = make_pow2(s);
|
s = make_pow2(s);
|
||||||
|
|
||||||
hr = D3DXCheckTextureRequirements(device, &s, &s, miplevels, usage, format, pool);
|
hr = check_texture_requirements(device, &s, &s, miplevels, usage, format, pool, D3DRTYPE_CUBETEXTURE);
|
||||||
|
|
||||||
if (!(caps.TextureCaps & D3DPTEXTURECAPS_MIPCUBEMAP))
|
if (!(caps.TextureCaps & D3DPTEXTURECAPS_MIPCUBEMAP))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue