[vtk-developers] glCopyTexImage2D errors + black windows when porting QVTKWidget -> QVTKOpenGLWidget
Elvis Stansvik
elvis.stansvik at orexplore.com
Tue May 16 11:29:22 EDT 2017
Today I tried porting our application from QVTKWidget to the new
QVTKOpenGLWidget available in VTK master. The application works fine
when running with the old QVTKWidget, but after porting to
QVTKOpenGLWidget I get lots of:
ERROR: In /buildbot/vtk8-builder/build/Rendering/OpenGL2/vtkTextureObject.cxx,
line 2153
vtkTextureObject (0x275acb0): failed at glCopyTexImage2D 6402 1 OpenGL
errors detected
0 : (1282) Invalid operation
and all our render windows appear black.
I followed the advice in the QVTKOpenGLWidget and use
QSurfaceFormat::setDefaultFormat(QVTKOpenGLWidget::defaultFormat());
before constructing the QApplication, to set the correct surface format.
Does this ring a bell to anyone?
This is with:
Ubuntu 16.04
Intel HD Graphics 4400
VTK master @ 97e306e4cdaab9b7b0b25d73da61e220391156b4
Thanks in advance for any advice. We need to port to QVTKOpenGLWidget
as soon as possible, to get proper support on retina screens.
Cheers,
Elvis
More information about the vtk-developers
mailing list