From: Adrian Bunk Date: Sat, 18 Sep 2021 06:10:15 +0000 (+0100) Subject: HACK: QVTKOpenGLWindow.cxx: Define GL_BACK_{LEFT,RIGHT} for Qt with OpenGL ES X-Git-Tag: archive/raspbian/9.0.3+dfsg1-2+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a09f6933b714555e3c2d305df4fe721fd1d78258;p=vtk9.git HACK: QVTKOpenGLWindow.cxx: Define GL_BACK_{LEFT,RIGHT} for Qt with OpenGL ES Gbp-Pq: Name 83_allow_gles_platforms.patch --- diff --git a/GUISupport/Qt/QVTKOpenGLWindow.cxx b/GUISupport/Qt/QVTKOpenGLWindow.cxx index 335feb58..a12b1af3 100644 --- a/GUISupport/Qt/QVTKOpenGLWindow.cxx +++ b/GUISupport/Qt/QVTKOpenGLWindow.cxx @@ -35,6 +35,11 @@ #include "vtkObjectFactory.h" #include "vtkOpenGLState.h" +#ifndef GL_BACK_LEFT +#define GL_BACK_LEFT GL_BACK +#define GL_BACK_RIGHT GL_BACK +#endif + QVTKOpenGLWindow::QVTKOpenGLWindow(QOpenGLWindow::UpdateBehavior ub, QWindow* p) : QVTKOpenGLWindow(vtkSmartPointer::New(), nullptr, ub, p) {