diff --git a/vtkm/rendering/raytracing/Camera.cxx b/vtkm/rendering/raytracing/Camera.cxx index 08920aee0..35c1855b0 100644 --- a/vtkm/rendering/raytracing/Camera.cxx +++ b/vtkm/rendering/raytracing/Camera.cxx @@ -494,16 +494,16 @@ Camera::~Camera() VTKM_CONT void Camera::SetParameters(const vtkm::rendering::Camera& camera, - const vtkm::Int32 width, - const vtkm::Int32 height) + const vtkm::Id width, + const vtkm::Id height) { this->SetUp(camera.GetViewUp()); this->SetLookAt(camera.GetLookAt()); this->SetPosition(camera.GetPosition()); this->SetZoom(camera.GetZoom()); this->SetFieldOfView(camera.GetFieldOfView()); - this->SetHeight(height); - this->SetWidth(width); + this->SetHeight(vtkm::Int32(height)); + this->SetWidth(vtkm::Int32(width)); this->CameraView = camera; } diff --git a/vtkm/rendering/raytracing/Camera.h b/vtkm/rendering/raytracing/Camera.h index cd1515e18..4da827e4a 100644 --- a/vtkm/rendering/raytracing/Camera.h +++ b/vtkm/rendering/raytracing/Camera.h @@ -60,8 +60,8 @@ public: VTKM_CONT void SetParameters(const vtkm::rendering::Camera& camera, - const vtkm::Int32 width, - const vtkm::Int32 height); + const vtkm::Id width, + const vtkm::Id height); VTKM_CONT