projects
/
vtk9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe66b11
)
HACK: QVTKOpenGLWindow.cxx: Define GL_BACK_{LEFT,RIGHT} for Qt with OpenGL ES
author
Adrian Bunk
<bunk@debian.org>
Fri, 11 Dec 2020 08:42:37 +0000
(10:42 +0200)
committer
Anton Gladky
<gladk@debian.org>
Sun, 13 Dec 2020 11:55:42 +0000
(11:55 +0000)
Gbp-Pq: Name 83_allow_gles_platforms.patch
GUISupport/Qt/QVTKOpenGLWindow.cxx
patch
|
blob
|
history
diff --git
a/GUISupport/Qt/QVTKOpenGLWindow.cxx
b/GUISupport/Qt/QVTKOpenGLWindow.cxx
index 335feb581c578c99d2cde621237ac0eec7da946b..a12b1af390e297405a8fc0d93ffe1328ac62f1ad 100644
(file)
--- 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<vtkGenericOpenGLRenderWindow>::New(), nullptr, ub, p)
{