       lastAlpha = dst.w;
     }
   }
-  if(t_isaDepth)
+
+  if(t_useIbr)
   {
     // convert position to window-coordinates
     const float4 depthWin = mulPost(c_MvPrMatrix, make_float4(maxDiffDepth.x, maxDiffDepth.y, maxDiffDepth.z, 1.0f));

      ((unsigned short*)(d_depth))[y * texwidth + x] = (unsigned short)(depth.z*float(USHRT_MAX));
      break;
    case vvImage2_5d::VV_UINT:
      default:
      ((unsigned int*)(d_depth))[y * texwidth + x] = (unsigned int)(depth.z*float(UINT_MAX));
      break;
    }


    pos += step;

    if(t_useIbr)
    {
      if(dst.w - lastAlpha > maxDiff)
      {
