mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 16:50:44 +00:00
Only calculate bounding box data on mesh views
This commit is contained in:
@@ -2242,7 +2242,7 @@ void BufferViewer::populateBBox(PopulateBufferData *bufdata)
|
||||
{
|
||||
const DrawcallDescription *draw = m_Ctx.CurDrawcall();
|
||||
|
||||
if(draw)
|
||||
if(draw && m_MeshView)
|
||||
{
|
||||
uint32_t eventId = draw->eventId;
|
||||
bool calcNeeded = false;
|
||||
@@ -2353,7 +2353,7 @@ void BufferViewer::calcBoundingData(CalcBoundingBoxData &bbox)
|
||||
|
||||
QVariantList list = el->GetVariants(bytes, d.end);
|
||||
|
||||
for(int comp = 0; comp < list.count(); comp++)
|
||||
for(int comp = 0; comp < 4 && comp < list.count(); comp++)
|
||||
{
|
||||
const QVariant &v = list[comp];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user