fix render target view creation
continuous-integration/drone/push Build is failing Details

d3d11
cosmonaut 2024-03-05 16:18:31 -08:00
parent 6c2eef669e
commit 01e805c800
1 changed files with 2 additions and 0 deletions

View File

@ -1685,6 +1685,8 @@ static Refresh_Texture* D3D11_CreateTexture(
{ {
D3D11_RENDER_TARGET_VIEW_DESC rtvDesc; D3D11_RENDER_TARGET_VIEW_DESC rtvDesc;
rtvDesc.Format = RefreshToD3D11_TextureFormat[d3d11Texture->format];
if (d3d11Texture->layerCount > 1) if (d3d11Texture->layerCount > 1)
{ {
rtvDesc.ViewDimension = D3D11_RTV_DIMENSION_TEXTURE2DARRAY; rtvDesc.ViewDimension = D3D11_RTV_DIMENSION_TEXTURE2DARRAY;