Fix 'error: call to 'clamp' is ambiguous' error when compiling opencl program

This commit is contained in:
Simon Detheridge 2015-02-21 08:50:51 +00:00
parent 582bd93dea
commit d05231f082

View File

@ -377,7 +377,7 @@ string FinalAccumOpenCLKernelCreator<T>::CreateGammaCorrectionFunctionString(boo
os <<
"\n"
" correctedChannels[rgbi] = (" << dataType << ")clamp(a, 0.0, 255.0);\n"
" correctedChannels[rgbi] = (" << dataType << ")clamp(a, 0.0f, 255.0f);\n"
" }\n"
"\n";