mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 15:19:09 +00:00
Check for weakly linked OpenCL.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5811 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
aa43f0a575
commit
4afe48a0fb
1 changed files with 9 additions and 6 deletions
|
@ -51,6 +51,9 @@ bool Initialize()
|
||||||
if(!clrHasOpenCL())
|
if(!clrHasOpenCL())
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
|
// If OpenCL is weakly linked and not found, its symbols will be NULL
|
||||||
|
if (clGetPlatformIDs == NULL)
|
||||||
|
return false;
|
||||||
|
|
||||||
// Connect to a compute device
|
// Connect to a compute device
|
||||||
cl_uint numPlatforms;
|
cl_uint numPlatforms;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue