mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Fix very scary bad mismatched pointers when defining buffer data range
This commit is contained in:
@@ -1530,7 +1530,7 @@ void BufferViewer::CalcColumnWidth()
|
||||
BufferData bufdata;
|
||||
bufdata.stride = sizeof(TestData);
|
||||
bufdata.data = new byte[sizeof(TestData)];
|
||||
bufdata.end = m_ModelVSIn->indices.data + sizeof(TestData);
|
||||
bufdata.end = bufdata.data + sizeof(TestData);
|
||||
m_ModelVSIn->buffers.push_back(bufdata);
|
||||
|
||||
TestData *test = (TestData *)bufdata.data;
|
||||
|
||||
Reference in New Issue
Block a user