mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 07:21:25 +12:00
d3d12: Fix var not initialized
This commit is contained in:
parent
e9fab57a0e
commit
a6770813b1
1 changed files with 3 additions and 0 deletions
|
@ -322,7 +322,10 @@ std::pair<std::vector<D3D12_VERTEX_BUFFER_VIEW>, D3D12_INDEX_BUFFER_VIEW> D3D12G
|
||||||
size_t indexSize;
|
size_t indexSize;
|
||||||
|
|
||||||
if (!indexed_draw)
|
if (!indexed_draw)
|
||||||
|
{
|
||||||
indexBufferView.Format = DXGI_FORMAT_R16_UINT;
|
indexBufferView.Format = DXGI_FORMAT_R16_UINT;
|
||||||
|
indexSize = 2;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
switch (m_indexed_array.m_type)
|
switch (m_indexed_array.m_type)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue