From: Adrian Bunk Date: Mon, 21 Aug 2023 22:27:20 +0000 (+0100) Subject: HACK: QVTKOpenGLWindow.cxx: Define GL_BACK_{LEFT,RIGHT} for Qt with OpenGL ES X-Git-Tag: archive/raspbian/9.1.0+really9.1.0+dfsg2-8+rpi1^2^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=625f974d067ea10bd078be2f660c735f85dcfb2e;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 067e27cf..8844e424 100644 --- a/GUISupport/Qt/QVTKOpenGLWindow.cxx +++ b/GUISupport/Qt/QVTKOpenGLWindow.cxx @@ -34,6 +34,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) {