mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-04-28 13:27:58 +03:00
Handle 32 bit index buffers when uploading data.
This commit is contained in:
parent
d23e6d0e90
commit
038edfdebd
1 changed files with 4 additions and 1 deletions
|
@ -1862,7 +1862,10 @@ static void* LockIndexBuffer(GuestBuffer* buffer, uint32_t, uint32_t, uint32_t f
|
|||
|
||||
static void UnlockIndexBuffer(GuestBuffer* buffer)
|
||||
{
|
||||
UnlockBuffer<uint16_t>(buffer);
|
||||
if (buffer->guestFormat == D3DFMT_INDEX32)
|
||||
UnlockBuffer<uint32_t>(buffer);
|
||||
else
|
||||
UnlockBuffer<uint16_t>(buffer);
|
||||
}
|
||||
|
||||
static void GetIndexBufferDesc(GuestBuffer* buffer, GuestBufferDesc* desc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue