move the CL_PLATFORM_MINI_CL check in the right place

This commit is contained in:
erwin.coumans
2011-11-15 00:27:45 +00:00
parent 108065d96c
commit 80b23971ca

View File

@@ -109,10 +109,10 @@ cl_context btOpenCLUtils::createContextFromPlatform(cl_platform_id platform, cl_
* implementation thinks we should be using. * implementation thinks we should be using.
*/ */
cl_context_properties cps[7] = {0,0,0,0,0,0,0}; cl_context_properties cps[7] = {0,0,0,0,0,0,0};
#if defined( _WIN32) && !defined(CL_PLATFORM_MINI_CL)
//#if !defined (CL_PLATFORM_MINI_CL) && !defined (__APPLE__)
cps[0] = CL_CONTEXT_PLATFORM; cps[0] = CL_CONTEXT_PLATFORM;
cps[1] = (cl_context_properties)platform; cps[1] = (cl_context_properties)platform;
#if defined( _WIN32) && !defined(CL_PLATFORM_MINI_CL)
//#if !defined (CL_PLATFORM_MINI_CL) && !defined (__APPLE__)
if (pGLContext && pGLDC) if (pGLContext && pGLDC)
{ {
cps[2] = CL_GL_CONTEXT_KHR; cps[2] = CL_GL_CONTEXT_KHR;