Fix an incorrect type cast.

This commit is contained in:
peng xiao 2013-04-11 16:59:32 +08:00
parent f4ae0cf19c
commit a2f4b301f3

View File

@ -1053,7 +1053,7 @@ BOOL WINAPI DllMain( HINSTANCE, DWORD fdwReason, LPVOID )
Context* cv_ctx = Context::getContext();
if(cv_ctx)
{
cl_context ctx = (cl_context)&(cv_ctx->impl->oclcontext);
cl_context ctx = cv_ctx->impl->oclcontext;
if(ctx)
openCLSafeCall(clReleaseContext(ctx));
}