restored ocl_cvtcolor.cl

This commit is contained in:
Ilya Lavrenov
2013-11-27 23:42:49 +04:00
parent d2e1318341
commit 41d046a2db
3 changed files with 664 additions and 5 deletions

View File

@@ -41,7 +41,6 @@
#include "precomp.hpp"
#include <map>
#include <iostream>
/*
Part of the file is an extract from the standard OpenCL headers from Khronos site.
@@ -2354,7 +2353,7 @@ struct Program::Impl
retval = clBuildProgram(handle, n,
(const cl_device_id*)deviceList,
buildflags.c_str(), 0, 0);
if( retval < 0 /*== CL_BUILD_PROGRAM_FAILURE*/ )
if( retval == CL_BUILD_PROGRAM_FAILURE )
{
char buf[1<<16];
size_t retsz = 0;