Commit d9b727cc authored by Ken Martin's avatar Ken Martin

Start working on better checking for OpenGL2 support

Update Windows checks for OpenGL2
parent 2592e617
Pipeline #124 failed with stage
......@@ -47,6 +47,13 @@ int TestVBOPLYMapper(int argc, char *argv[])
vtkNew<vtkLightKit> lightKit;
lightKit->AddLightsToRenderer(renderer.Get());
if (!renderWindow->SupportsOpenGL())
{
cerr << "The platform does not support OpenGL as required\n";
cerr << renderWindow->ReportCapabilities();
return 1;
}
const char* fileName = vtkTestUtilities::ExpandDataFileName(argc, argv,
"Data/dragon.ply");
vtkNew<vtkPLYReader> reader;
......
......@@ -275,6 +275,7 @@ protected:
void CreateOffScreenWindow(int width,int height);
void SaveScreenRendering();
void CleanUpRenderers();
void VTKRegisterClass();
private:
vtkWin32OpenGLRenderWindow(const vtkWin32OpenGLRenderWindow&); // Not implemented.
......
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