mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-21 13:54:18 +01:00
[d3d9] Return D3D_OK in CreateTexture even if AUTOGENMIPMAP flag is stripped
D3DOK_NOAUTOGEN is only returned when querying format support, the flag is stripped away silently in CreateTexture if it has to be. Fixes #1409
This commit is contained in:
parent
1f67602b98
commit
b9474cf787
@ -414,8 +414,7 @@ namespace dxvk {
|
|||||||
m_initializer->InitTexture(texture->GetCommonTexture(), initialData);
|
m_initializer->InitTexture(texture->GetCommonTexture(), initialData);
|
||||||
*ppTexture = texture.ref();
|
*ppTexture = texture.ref();
|
||||||
|
|
||||||
bool mipSuccess = (Usage & D3DUSAGE_AUTOGENMIPMAP) == (texture->GetCommonTexture()->Desc()->Usage & D3DUSAGE_AUTOGENMIPMAP);
|
return D3D_OK;
|
||||||
return mipSuccess ? D3D_OK : D3DOK_NOAUTOGEN;
|
|
||||||
}
|
}
|
||||||
catch (const DxvkError& e) {
|
catch (const DxvkError& e) {
|
||||||
Logger::err(e.message());
|
Logger::err(e.message());
|
||||||
@ -461,8 +460,7 @@ namespace dxvk {
|
|||||||
m_initializer->InitTexture(texture->GetCommonTexture());
|
m_initializer->InitTexture(texture->GetCommonTexture());
|
||||||
*ppVolumeTexture = texture.ref();
|
*ppVolumeTexture = texture.ref();
|
||||||
|
|
||||||
bool mipSuccess = (Usage & D3DUSAGE_AUTOGENMIPMAP) == (texture->GetCommonTexture()->Desc()->Usage & D3DUSAGE_AUTOGENMIPMAP);
|
return D3D_OK;
|
||||||
return mipSuccess ? D3D_OK : D3DOK_NOAUTOGEN;
|
|
||||||
}
|
}
|
||||||
catch (const DxvkError& e) {
|
catch (const DxvkError& e) {
|
||||||
Logger::err(e.message());
|
Logger::err(e.message());
|
||||||
@ -506,8 +504,7 @@ namespace dxvk {
|
|||||||
m_initializer->InitTexture(texture->GetCommonTexture());
|
m_initializer->InitTexture(texture->GetCommonTexture());
|
||||||
*ppCubeTexture = texture.ref();
|
*ppCubeTexture = texture.ref();
|
||||||
|
|
||||||
bool mipSuccess = (Usage & D3DUSAGE_AUTOGENMIPMAP) == (texture->GetCommonTexture()->Desc()->Usage & D3DUSAGE_AUTOGENMIPMAP);
|
return D3D_OK;
|
||||||
return mipSuccess ? D3D_OK : D3DOK_NOAUTOGEN;
|
|
||||||
}
|
}
|
||||||
catch (const DxvkError& e) {
|
catch (const DxvkError& e) {
|
||||||
Logger::err(e.message());
|
Logger::err(e.message());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user