d3d12: Fix var not initialized

This commit is contained in:
vlj 2015-05-25 18:50:51 +02:00 committed by Vincent Lejeune
parent e9fab57a0e
commit a6770813b1

View file

@ -322,7 +322,10 @@ std::pair<std::vector<D3D12_VERTEX_BUFFER_VIEW>, D3D12_INDEX_BUFFER_VIEW> D3D12G
size_t indexSize;
if (!indexed_draw)
{
indexBufferView.Format = DXGI_FORMAT_R16_UINT;
indexSize = 2;
}
else
{
switch (m_indexed_array.m_type)