Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Robadob committed Nov 22, 2023
1 parent bdbba58 commit 5ea1ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flamegpu/simulation/CUDASimulation.cu
Original file line number Diff line number Diff line change
Expand Up @@ -1990,7 +1990,7 @@ void CUDASimulation::destroyStreams() {
}
void CUDASimulation::safeDestroyJitify() {
// Can't have done any RTC if device is not init
if (deviceInitialised != -1)
if (deviceInitialised == -1)
return;
// See note in destroyStreams()
bool safeToDestroy = flamegpu::detail::cuda::cuDevicePrimaryContextIsActive(deviceInitialised);
Expand Down

0 comments on commit 5ea1ce2

Please sign in to comment.