Commit ca58fe77 authored by David C. Lonie's avatar David C. Lonie

Call glewInit() from test to setup GL function pointers.

Also add missing test dependency.
parent 5a0f0db3
......@@ -182,6 +182,7 @@ int TestGLUTRenderWindow(int argc, char** argv)
glutIdleFunc(test); // Register test callback handler for vtkTesting
glutReshapeFunc(handleResize); // Register resize callback handler for window resize
atexit(onexit); // Register callback to uninitialize on exit
glewInit();
glutMainLoop(); // Enter the infinitely event-processing loop
return 0;
}
......@@ -3,6 +3,7 @@ vtk_module(vtkRenderingExternal
vtkRenderingCore
vtkRendering${VTK_RENDERING_BACKEND}
TEST_DEPENDS
vtkglew
vtkTestingRendering
EXCLUDE_FROM_ALL
)
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