Browse Source

Merge commit 'ee2671a' into cg_merges_20130606a

Luke Dashjr 12 years ago
parent
commit
8ac181683b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-opencl.c

+ 1 - 1
driver-opencl.c

@@ -1833,9 +1833,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);
 }