mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-30 15:50:05 -06:00
Handle 32 bit index buffers when uploading data.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user