Commit d3d66a33 authored by Robert Maynard's avatar Robert Maynard

GameOfLife example always uses the proper device adapter

Previously the example would only time using the serial device
adapter, which wouldn't work when the user explicitly specified
a device on the command line.
parent 6c5c197a
......@@ -214,7 +214,7 @@ struct RenderGameOfLife
vtkm::Vec<float, 3> spacing(0.0075f, 0.0075f, 0.0f);
vtkm::cont::ArrayHandleUniformPointCoordinates coords(dimensions, origin, spacing);
vtkm::interop::TransferToOpenGL(coords, this->VBOState, vtkm::cont::DeviceAdapterTagSerial());
vtkm::interop::TransferToOpenGL(coords, this->VBOState);
}
void render(vtkm::cont::DataSet& data)
......@@ -250,7 +250,7 @@ struct RenderGameOfLife
}
};
vtkm::cont::Timer gTimer{ vtkm::cont::DeviceAdapterTagSerial() };
vtkm::cont::Timer gTimer;
vtkm::cont::DataSet* gData = nullptr;
GameOfLife* gFilter = nullptr;
RenderGameOfLife* gRenderer = nullptr;
......
Markdown is supported
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