HACK: vtkQWidgetTexture.cxx: Don't use vtkOpenGLCheckErrorMacro
authorAdrian Bunk <bunk@debian.org>
Sat, 25 Feb 2023 08:59:35 +0000 (08:59 +0000)
committerAnton Gladky <gladk@debian.org>
Sat, 25 Feb 2023 08:59:35 +0000 (08:59 +0000)
Fixes building for Qt with OpenGL ES.

Gbp-Pq: Name 84_vtkQWidgetTexture_no_vtkOpenGLCheckErrorMacro.patch

GUISupport/Qt/vtkQWidgetTexture.cxx

index 437c9936ac45fa71d617ba6d5e0f57d6115587fa..e124f4c82b9f9ac28bf77a49a20487befd5995ad 100644 (file)
@@ -18,7 +18,7 @@
 #include "vtkOpenGLResourceFreeCallback.h"
 #include "vtkOpenGLState.h"
 
-#include "vtkOpenGLError.h"
+//#include "vtkOpenGLError.h"
 
 #include <QGraphicsProxyWidget>
 #include <QGraphicsScene>
@@ -98,7 +98,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");
     }
   };
 }