Browse Source

Change the opencl shutdown sequence.

ckolivas 13 years ago
parent
commit
ee2671a559
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-opencl.c

+ 1 - 1
driver-opencl.c

@@ -1570,9 +1570,9 @@ static void opencl_thread_shutdown(struct thr_info *thr)
 	const int thr_id = thr->id;
 	_clState *clState = clStates[thr_id];
 
-	clReleaseCommandQueue(clState->commandQueue);
 	clReleaseKernel(clState->kernel);
 	clReleaseProgram(clState->program);
+	clReleaseCommandQueue(clState->commandQueue);
 	clReleaseContext(clState->context);
 }