mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[d3d11] Prevent log spam from repeated Get/SetResourceMinLOD calls
This commit is contained in:
parent
3e17ccfaaa
commit
f2d461ab5b
@ -1255,12 +1255,19 @@ namespace dxvk {
|
|||||||
void STDMETHODCALLTYPE D3D11DeviceContext::SetResourceMinLOD(
|
void STDMETHODCALLTYPE D3D11DeviceContext::SetResourceMinLOD(
|
||||||
ID3D11Resource* pResource,
|
ID3D11Resource* pResource,
|
||||||
FLOAT MinLOD) {
|
FLOAT MinLOD) {
|
||||||
Logger::err("D3D11DeviceContext::SetResourceMinLOD: Not implemented");
|
bool s_errorShown = false;
|
||||||
|
|
||||||
|
if (std::exchange(s_errorShown, true))
|
||||||
|
Logger::err("D3D11DeviceContext::SetResourceMinLOD: Not implemented");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
FLOAT STDMETHODCALLTYPE D3D11DeviceContext::GetResourceMinLOD(ID3D11Resource* pResource) {
|
FLOAT STDMETHODCALLTYPE D3D11DeviceContext::GetResourceMinLOD(ID3D11Resource* pResource) {
|
||||||
Logger::err("D3D11DeviceContext::GetResourceMinLOD: Not implemented");
|
bool s_errorShown = false;
|
||||||
|
|
||||||
|
if (std::exchange(s_errorShown, true))
|
||||||
|
Logger::err("D3D11DeviceContext::GetResourceMinLOD: Not implemented");
|
||||||
|
|
||||||
return 0.0f;
|
return 0.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user