HACK: vtkQWidgetTexture.cxx: Don't use vtkOpenGLCheckErrorMacro
authorAdrian Bunk <bunk@debian.org>
Thu, 6 Jun 2024 19:34:35 +0000 (21:34 +0200)
committerAnton Gladky <gladk@debian.org>
Thu, 6 Jun 2024 19:34:35 +0000 (21:34 +0200)
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");
     }
   };
 }