Skip to content

Commit 36f196a

Browse files
committed
GPU Display: Don't draw TOF and ITS hits multiple times
1 parent 3795e89 commit 36f196a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎GPU/GPUTracking/display/GPUDisplay.cxx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,12 +465,12 @@ void GPUDisplay::DrawGLScene_drawCommands()
465465
if (mCfgL.drawTOF) {
466466
SetColorTOF();
467467
mBackend->pointSizeFactor(2);
468-
LOOP_SECTOR LOOP_COLLISION_COL(drawVertices(mGlDLPoints[0][tTOFCLUSTER][0], GPUDisplayBackend::POINTS));
468+
LOOP_SECTOR LOOP_COLLISION_COL(drawVertices(mGlDLPoints[iSector][tTOFCLUSTER][iCol], GPUDisplayBackend::POINTS));
469469
mBackend->pointSizeFactor(1);
470470
}
471471
if (mCfgL.drawITS) {
472472
SetColorITS();
473-
LOOP_SECTOR LOOP_COLLISION_COL(drawVertices(mGlDLPoints[0][tITSCLUSTER][0], GPUDisplayBackend::POINTS));
473+
LOOP_SECTOR LOOP_COLLISION_COL(drawVertices(mGlDLPoints[iSector][tITSCLUSTER][iCol], GPUDisplayBackend::POINTS));
474474
}
475475
if (mCfgL.drawTPC) {
476476
SetColorClusters();

0 commit comments

Comments
 (0)