mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-10 06:10:07 +00:00
Make sure to double check that we have properly bound the OpenCL API
before using it.
This commit is contained in:
parent
e9b34b596c
commit
da9c8a83dc
@ -59,6 +59,11 @@ static bool HAS_CL_VERSION_1_1 () {
|
||||
}
|
||||
static bool initCL(cl_context *clContext, cl_command_queue *clQueue)
|
||||
{
|
||||
if (!clGetPlatformIDs) {
|
||||
printf("Error clGetPlatformIDs call not bound.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
cl_int ciErrNum;
|
||||
|
||||
cl_platform_id cpPlatform = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user