HACK: vtkQWidgetTexture.cxx: Don't use vtkOpenGLCheckErrorMacro
authorAdrian Bunk <bunk@debian.org>
Thu, 26 Sep 2024 16:08:15 +0000 (16:08 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 26 Sep 2024 16:08:15 +0000 (16:08 +0000)
Fixes building for Qt with OpenGL ES.

Gbp-Pq: Name 84_vtkQWidgetTexture_no_vtkOpenGLCheckErrorMacro.patch

GUISupport/Qt/vtkQWidgetTexture.cxx

index 728b919955aafdfbba4e37d11c0345cccaea27f6..04d8a73355544b5e08243daae05adae741197f18 100644 (file)
@@ -7,7 +7,7 @@
 #include "vtkOpenGLResourceFreeCallback.h"
 #include "vtkOpenGLState.h"
 
-#include "vtkOpenGLError.h"
+//#include "vtkOpenGLError.h"
 
 #include <QGraphicsProxyWidget>
 #include <QGraphicsScene>
@@ -88,7 +88,7 @@ vtkQWidgetTexture::vtkQWidgetTexture()
       }
 
       this->Create2DFromRaw(width, height, 4, VTK_UNSIGNED_CHAR, this->ImageBuffer);
-      vtkOpenGLCheckErrorMacro("failed after QWidgeTexture repaint and draw");
+      //vtkOpenGLCheckErrorMacro("failed after QWidgeTexture repaint and draw");
     }
   };
 }