diff options
| author | Soren Jorvang <soren.jorvang@gmail.com> | 2010-12-05 16:57:32 +0000 |
|---|---|---|
| committer | Soren Jorvang <soren.jorvang@gmail.com> | 2010-12-05 16:57:32 +0000 |
| commit | c2f84fdccb1106bbd0ab2b640aefaf413d03871d (patch) | |
| tree | ddd8158f29e8c9dbf9137a6725fe5692eaaf1746 /Source/Core/Common/Src/OpenCL.cpp | |
| parent | 4934cd29b30b06fbe6f583660316e6713126d9ed (diff) | |
CLRun is now used everywhere but OS X.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6532 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/OpenCL.cpp')
| -rw-r--r-- | Source/Core/Common/Src/OpenCL.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/Core/Common/Src/OpenCL.cpp b/Source/Core/Common/Src/OpenCL.cpp index c1a6e7166b..2b3b309794 100644 --- a/Source/Core/Common/Src/OpenCL.cpp +++ b/Source/Core/Common/Src/OpenCL.cpp @@ -21,7 +21,7 @@ #include "Common.h" #include "Timer.h" -#if defined(_WIN32) || defined(USE_CLRUN) +#ifndef __APPLE__ #include "clrun.h" #endif @@ -46,14 +46,15 @@ bool Initialize() return false; int err; // error code returned from api calls -#if defined(_WIN32) || defined(USE_CLRUN) +#ifdef __APPLE__ + // If OpenCL is weakly linked and not found, its symbols will be NULL + if (clGetPlatformIDs == NULL) + return false; +#else clrInit(); if(!clrHasOpenCL()) return false; #endif - // If OpenCL is weakly linked and not found, its symbols will be NULL - if (clGetPlatformIDs == NULL) - return false; // Connect to a compute device cl_uint numPlatforms; |
