Skip to content

Commit 6951e4b

Browse files
committed
GPU: Fix: Don't attempt to initialize the same QA instance twice
1 parent 07f1edb commit 6951e4b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

GPU/GPUTracking/Global/GPUChainTracking.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,10 @@ int GPUChainTracking::ForceInitQA()
408408
if (!mQA) {
409409
mQA.reset(new GPUQA(this));
410410
}
411-
return mQA->InitQA();
411+
if (!mQA->IsInitialized()) {
412+
return mQA->InitQA();
413+
}
414+
return 0;
412415
}
413416

414417
int GPUChainTracking::Finalize()

0 commit comments

Comments
 (0)