HACK: vtkQWidgetTexture.cxx: Don't use vtkOpenGLCheckErrorMacro
authorAdrian Bunk <bunk@debian.org>
Fri, 22 Nov 2024 10:49:45 +0000 (11:49 +0100)
committerEmilio Pozuelo Monfort <pochu@debian.org>
Fri, 22 Nov 2024 10:49:45 +0000 (11:49 +0100)
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");
     }
   };
 }