D3D: Use D3DX for texture dumping.
This commit is contained in:
parent
a83c239765
commit
3de2ee5d46
|
@ -42,8 +42,7 @@ bool TextureCache::TCacheEntry::Save(const char filename[], unsigned int level)
|
||||||
warn_once = false;
|
warn_once = false;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
//return SUCCEEDED(PD3DX11SaveTextureToFileA(D3D::context, texture->GetTex(), D3DX11_IFF_PNG, filename));
|
return SUCCEEDED(PD3DX11SaveTextureToFileA(D3D::context, texture->GetTex(), D3DX11_IFF_PNG, filename));
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TextureCache::TCacheEntry::Load(unsigned int width, unsigned int height,
|
void TextureCache::TCacheEntry::Load(unsigned int width, unsigned int height,
|
||||||
|
|
Loading…
Reference in New Issue