HACK: QVTKOpenGLWindow.cxx: Define GL_BACK_{LEFT,RIGHT} for Qt with OpenGL ES
authorAdrian Bunk <bunk@debian.org>
Mon, 29 Apr 2024 14:16:28 +0000 (16:16 +0200)
committerMichael R. Crusoe <crusoe@debian.org>
Mon, 29 Apr 2024 14:16:28 +0000 (16:16 +0200)
Gbp-Pq: Name 83_allow_gles_platforms.patch

GUISupport/Qt/QVTKOpenGLWindow.cxx

index 067e27cf6ea96a04b0860b5c04dd2273495b966c..8844e4245910ea1475d1b8b4f3c9172686ce69e7 100644 (file)
 #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<vtkGenericOpenGLRenderWindow>::New(), nullptr, ub, p)
 {