Commit 695f2132 authored by Philippe Pébay's avatar Philippe Pébay
Browse files

The max memory in bytes value was incorrectly cast to int.

Change-Id: I6a10483715b6618d1e5297c424fb66ff630df7d5
parent 3815154f
......@@ -1150,7 +1150,7 @@ public:
int arrayAccessMode,
int arrayId,
const char *arrayName,
int maxMemoryInBytes)
vtkIdType maxMemoryInBytes)
{
bool needUpdate=false;
bool modified=false;
......@@ -3121,7 +3121,7 @@ int vtkOpenGLGPUVolumeRayCastMapper::LoadScalarField(vtkImageData *input,
volume->GetProperty()->GetInterpolationType()
==VTK_LINEAR_INTERPOLATION,
this->TableRange,
static_cast<int>(static_cast<float>(this->MaxMemoryInBytes)*this->MaxMemoryFraction));
static_cast<vtkIdType>(static_cast<float>(this->MaxMemoryInBytes)*this->MaxMemoryFraction));
result=texture->IsLoaded();
this->CurrentScalar=texture;
......@@ -3152,7 +3152,7 @@ int vtkOpenGLGPUVolumeRayCastMapper::LoadScalarField(vtkImageData *input,
this->ArrayAccessMode,
this->ArrayId,
this->ArrayName,
static_cast<int>(static_cast<float>(this->MaxMemoryInBytes)*this->MaxMemoryFraction));
static_cast<vtkIdType>(static_cast<float>(this->MaxMemoryInBytes)*this->MaxMemoryFraction));
result=result && mask->IsLoaded();
this->CurrentMask=mask;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment