 
 void vvRayRend::updateTransferFunction()
 {
+  bool ok;
+
   int lutEntries = getLUTSize();
   delete[] _rgbaTF;
   _rgbaTF = new float[4 * lutEntries];


vvRayRend::~vvRayRend()
{
  if (d_volumeArrays != 0)
  {
    for (int f=0; f<vd->frames; ++f)
    {
      cudaFreeArray(d_volumeArrays[f]);
    }
  }
  delete[] d_volumeArrays;
  cudaFreeArray(d_transferFuncArray);
  cudaFreeArray(d_randArray);
  cudaFreeArray(d_spaceSkippingArray);
  delete[] h_spaceSkippingArray;
  delete[] h_cellMinValues;
  delete[] h_cellMaxValues;

    cerr << "Couldn't accomodate the volume" << endl;
    for (int f=0; f<outOfMemFrame; ++f)
    {
      vvCuda::checkError(&ok, cudaFreeArray(d_volumeArrays[f]),
                         "vvRayRend::initVolumeTexture()");
      d_volumeArrays[f] = NULL;
    }
  }
