mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Use the correct role instead of a magic number.
This commit is contained in:
committed by
Baldur Karlsson
parent
68d6873302
commit
cad64db864
@@ -336,7 +336,7 @@ void PerformanceCounterSelection::SetSelectedCounters(const QList<GPUCounter> &c
|
||||
RDTreeWidgetItemIterator it(ui->counterTree);
|
||||
while(*it)
|
||||
{
|
||||
const QVariant id = (*it)->data(0, Qt::UserRole + 2);
|
||||
const QVariant id = (*it)->data(0, CounterIdRole);
|
||||
if(id.isValid())
|
||||
{
|
||||
const GPUCounter counter = (GPUCounter)id.toUInt();
|
||||
|
||||
Reference in New Issue
Block a user