< prev index next >

src/java.desktop/share/native/liblcms/cmslut.c

Print this page
rev 16232 : 8170798: Fix minor issues in java2d and sound coding.

*** 813,825 **** rest /= nSamples[t]; In[t] = _cmsQuantizeVal(Colorant, nSamples[t]); } if (clut ->Tab.T != NULL) { - for (t=0; t < nOutputs; t++) Out[t] = clut->Tab.T[index + t]; } if (!Sampler(In, Out, Cargo)) return FALSE; --- 813,828 ---- rest /= nSamples[t]; In[t] = _cmsQuantizeVal(Colorant, nSamples[t]); } + for (t=0; t < nOutputs; t++) { if (clut ->Tab.T != NULL) { Out[t] = clut->Tab.T[index + t]; + } else { + Out[t] = 0; + } } if (!Sampler(In, Out, Cargo)) return FALSE;
< prev index next >