Fix spot lights rendering on D3D12

This commit is contained in:
Wojciech Figat
2021-12-07 18:22:06 +01:00
parent 660c8ef95c
commit 4b9001abf2
4 changed files with 9 additions and 25 deletions

View File

@@ -288,7 +288,6 @@ void GPUTextureDX11::initHandles()
// (ViewDimension must be D3D11_SRV_DIMENSION_TEXTURECUBE) [ STATE_CREATION ERROR #126: CREATESHADERRESOURCEVIEW_INVALIDDESC]
if (isCubeMap && _device->GetRendererType() != RendererType::DirectX10)
{
RendererType aa = _device->GetRendererType();
/*if (isCubeMap)
{
srDesc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURECUBEARRAY;