fix Linux build

This commit is contained in:
erwincoumans
2013-06-17 21:57:04 -07:00
parent 9a92eecf10
commit 227d88f553
4 changed files with 12 additions and 9 deletions

View File

@@ -164,9 +164,10 @@ public:
//create a new OpenCL buffer
size_t memSizeInBytes = sizeof(T)*_Count;
cl_mem buf = clCreateBuffer(m_clContext, CL_MEM_READ_WRITE, memSizeInBytes, NULL, &ciErrNum);
b3Assert(ciErrNum==CL_SUCCESS);
if (ciErrNum!=CL_SUCCESS)
{
b3Error("OpenCL out-of-memory\n");
b3Assert(0);
_Count = 0;
result = false;
}