mirror of https://gitee.com/openkylin/vtk9.git
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:
parent
3207b4ec8a
commit
c56890a8ab
|
@ -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");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue