mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-04 15:25:37 -04:00
Fix 'error: call to 'clamp' is ambiguous' error when compiling opencl program
This commit is contained in:
@ -377,7 +377,7 @@ string FinalAccumOpenCLKernelCreator<T>::CreateGammaCorrectionFunctionString(boo
|
|||||||
|
|
||||||
os <<
|
os <<
|
||||||
"\n"
|
"\n"
|
||||||
" correctedChannels[rgbi] = (" << dataType << ")clamp(a, 0.0, 255.0);\n"
|
" correctedChannels[rgbi] = (" << dataType << ")clamp(a, 0.0f, 255.0f);\n"
|
||||||
" }\n"
|
" }\n"
|
||||||
"\n";
|
"\n";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user