 #endif
    if(Base::preIntegration)
    {
-       shmsize += Base::intImg->width*sizeof(Scalar);
+       shmsize += Base::intImg->width*sizeof(float);
    }
 #ifdef NOSHMEM
    if(Base::sliceInterpol)

            if(preInt)
            {
                const float sb = volume(vidx, line-iPosY, slice, principal);
                if(slice != firstSlice)
                {
                    const float4 c = tex2D(tex_preint, sf[ix], sb);


            if(preInt)
            {
                const float sb = volume(vidx, line-iPosY, slice, principal);
                if(sf >= 0.f)
                {
                    const float4 c = tex2D(tex_preint, sf, sb);

