mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 10:54:16 +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);
|
||||
*ppTexture = texture.ref();
|
||||
|
||||
bool mipSuccess = (Usage & D3DUSAGE_AUTOGENMIPMAP) == (texture->GetCommonTexture()->Desc()->Usage & D3DUSAGE_AUTOGENMIPMAP);
|
||||
return mipSuccess ? D3D_OK : D3DOK_NOAUTOGEN;
|
||||
return D3D_OK;
|
||||
}
|
||||
catch (const DxvkError& e) {
|
||||
Logger::err(e.message());
|
||||
@ -461,8 +460,7 @@ namespace dxvk {
|
||||
m_initializer->InitTexture(texture->GetCommonTexture());
|
||||
*ppVolumeTexture = texture.ref();
|
||||
|
||||
bool mipSuccess = (Usage & D3DUSAGE_AUTOGENMIPMAP) == (texture->GetCommonTexture()->Desc()->Usage & D3DUSAGE_AUTOGENMIPMAP);
|
||||
return mipSuccess ? D3D_OK : D3DOK_NOAUTOGEN;
|
||||
return D3D_OK;
|
||||
}
|
||||
catch (const DxvkError& e) {
|
||||
Logger::err(e.message());
|
||||
@ -506,8 +504,7 @@ namespace dxvk {
|
||||
m_initializer->InitTexture(texture->GetCommonTexture());
|
||||
*ppCubeTexture = texture.ref();
|
||||
|
||||
bool mipSuccess = (Usage & D3DUSAGE_AUTOGENMIPMAP) == (texture->GetCommonTexture()->Desc()->Usage & D3DUSAGE_AUTOGENMIPMAP);
|
||||
return mipSuccess ? D3D_OK : D3DOK_NOAUTOGEN;
|
||||
return D3D_OK;
|
||||
}
|
||||
catch (const DxvkError& e) {
|
||||
Logger::err(e.message());
|
||||
|
Loading…
x
Reference in New Issue
Block a user