[vtk-developers] glCopyTexImage2D errors + black windows when porting QVTKWidget -> QVTKOpenGLWidget

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Tue May 16 11:48:51 EDT 2017


Try running the `vtkGUISupportQtCxx-TestQVTKOpenGLWidget` test. Does it
pass?

If you can share the code how this is setup, we can see if something off.
Also, try downloading ParaView 5.3 or later. Does it work on your system?

Utkarsh

On Tue, May 16, 2017 at 11:29 AM, Elvis Stansvik <
elvis.stansvik at orexplore.com> wrote:

> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20170516/2c0cb0cc/attachment.html>


More information about the vtk-developers mailing list