1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-27 23:14:21 +00:00

Change the opencl shutdown sequence.

This commit is contained in:
ckolivas 2013-05-29 12:18:35 +10:00
parent 5b9cf0f077
commit ee2671a559

View File

@ -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);
}