Commit a0e43878 authored by Jean-Christophe Fillion-Robin's avatar Jean-Christophe Fillion-Robin
Browse files

Fix MacOSX build error related to OpenGL2/vtkOpenGL.h. See #15285

This commit ensures the file defining VTK_USE_{CARBON|COCOA} is included
and fixes the following build error caught by Slicer dashboard:

// ---------
In file included from /Users/kitware/Dashboards/Experimental/Slicer-0/Modules/Loadable/VolumeRendering/VolumeRenderingReplacements/vtkSlicerOpenGLRayCastImageDisplayHelper.cxx:25:
/Users/kitware/Dashboards/Experimental/Slicer-0-build/VTKv6/Rendering/OpenGL2/vtkOpenGL.h:26:11: fatal error: 'GL/gl.h' file not found

          ^
1 error generated.
// ---------

Change-Id: I34b62ab1ab6954ebba6ca91b6c99dd00b30f1957
parent 958219ca
......@@ -16,6 +16,7 @@
#define vtkOpenGL_h
#include "vtkConfigure.h"
#include "vtkRenderingOpenGLConfigure.h" // For VTK_USE_{CARBON|COCOA}
// To prevent gl.h to include glext.h provided by the system
#define GL_GLEXT_LEGACY
......
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