Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/doitsujin/dxvk.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Ashton <joshua@froggi.es>2020-02-07 02:18:46 +0300
committerJoshua Ashton <joshua@froggi.es>2020-02-07 02:18:46 +0300
commit860896897cef5ab3e1170d4973843053e83eb4bb (patch)
tree7e9b5d7938901e980c25e94f33cffcb123927a8e
parent1f67602b98afdaef5660632d38f3d2cce6568e82 (diff)
[d3d9] Return D3D_OK in CreateTexture even if AUTOGENMIPMAP flag is strippedd3d9-mipmapgen-flag
D3DOK_NOAUTOGEN is only returned when querying format support, the flag is stripped away silently in CreateTexture if it has to be. Fixes #1409
-rw-r--r--src/d3d9/d3d9_device.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp
index e7a9b814..b1589b2c 100644
--- a/src/d3d9/d3d9_device.cpp
+++ b/src/d3d9/d3d9_device.cpp
@@ -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());