1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-18 13:54:16 +01:00

[d3d11] Fix silly GenerateMips bug

This commit is contained in:
Philip Rebohle 2018-08-16 00:57:16 +02:00
parent c3c7a4172d
commit f75e3ad13f
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -947,7 +947,7 @@ namespace dxvk {
void STDMETHODCALLTYPE D3D11DeviceContext::GenerateMips(ID3D11ShaderResourceView* pShaderResourceView) {
auto view = static_cast<D3D11ShaderResourceView*>(pShaderResourceView);
if (view->GetResourceType() != D3D11_RESOURCE_DIMENSION_BUFFER)
if (view->GetResourceType() == D3D11_RESOURCE_DIMENSION_BUFFER)
return;
EmitCs([cDstImageView = view->GetImageView()]