mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-02-01 18:40:12 -05:00
Fix 'error: call to 'clamp' is ambiguous' error when compiling opencl program
This commit is contained in:
parent
582bd93dea
commit
d05231f082
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user