mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-12 17:51:02 +00:00
Account for baseVertex when patching line strip index buffer
This commit is contained in:
@@ -190,9 +190,10 @@ void PatchLineStripIndexBuffer(const ActionDescription *action, Topology topolog
|
||||
{
|
||||
const uint32_t restart = 0xffffffff;
|
||||
|
||||
#define IDX_VALUE(offs) \
|
||||
(idx16 ? idx16[index + (offs)] \
|
||||
: (idx32 ? idx32[index + (offs)] : (idx8 ? idx8[index + (offs)] : index + (offs))))
|
||||
#define IDX_VALUE(offs) \
|
||||
(idx16 ? idx16[index + (offs)] \
|
||||
: (idx32 ? idx32[index + (offs)] : (idx8 ? idx8[index + (offs)] : index + (offs)))) + \
|
||||
action->baseVertex
|
||||
|
||||
switch(topology)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user