Skip to content
Snippets Groups Projects
Commit 9c18166e authored by Bill Lorensen's avatar Bill Lorensen Committed by Code Review
Browse files

Merge topic 'fix-GRAMdetection-overflow-under-X' into master

6ac4b149 Fix GRAM size detection under X Window.
parents 3de84515 6ac4b149
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ void vtkXGPUInfoList::Probe()
ramSize=0;
}
vtkGPUInfo *info=vtkGPUInfo::New();
info->SetDedicatedVideoMemory(ramSize*1024); // ramSize is in KB
info->SetDedicatedVideoMemory(static_cast<vtkIdType>(ramSize)*1024); // ramSize is in KB
this->Array->v[j]=info;
++j;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment