1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[d3d11] Don't allow creation of 0x0-sized textures

This commit is contained in:
Philip Rebohle 2018-09-18 21:33:27 +02:00
parent bf5476900a
commit 837a3f5787
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -256,6 +256,9 @@ namespace dxvk {
HRESULT D3D11CommonTexture::NormalizeTextureProperties(D3D11_COMMON_TEXTURE_DESC* pDesc) {
if (pDesc->Width == 0 || pDesc->Height == 0 || pDesc->Depth == 0)
return E_INVALIDARG;
if (FAILED(DecodeSampleCount(pDesc->SampleDesc.Count, nullptr)))
return E_INVALIDARG;