From 80b23971ca04d7451a46ba73e62101ec90bb8c3e Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Tue, 15 Nov 2011 00:27:45 +0000 Subject: [PATCH] move the CL_PLATFORM_MINI_CL check in the right place --- Demos/SharedOpenCL/btOpenCLUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Demos/SharedOpenCL/btOpenCLUtils.cpp b/Demos/SharedOpenCL/btOpenCLUtils.cpp index 17638f7a7..4268cfd2e 100644 --- a/Demos/SharedOpenCL/btOpenCLUtils.cpp +++ b/Demos/SharedOpenCL/btOpenCLUtils.cpp @@ -109,10 +109,10 @@ cl_context btOpenCLUtils::createContextFromPlatform(cl_platform_id platform, cl_ * implementation thinks we should be using. */ 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[1] = (cl_context_properties)platform; +#if defined( _WIN32) && !defined(CL_PLATFORM_MINI_CL) +//#if !defined (CL_PLATFORM_MINI_CL) && !defined (__APPLE__) if (pGLContext && pGLDC) { cps[2] = CL_GL_CONTEXT_KHR;