HACK: vtkQWidgetTexture.cxx: Don't use vtkOpenGLCheckErrorMacro

Fixes building for Qt with OpenGL ES.

Gbp-Pq: Name 84_vtkQWidgetTexture_no_vtkOpenGLCheckErrorMacro.patch
This commit is contained in:
Adrian Bunk 2023-04-14 18:20:58 +08:00 committed by zhouganqing
parent 3207b4ec8a
commit c56890a8ab
1 changed files with 2 additions and 2 deletions

View 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");
}
};
}