<div dir="ltr">Try running the `vtkGUISupportQtCxx-TestQVTKOpenGLWidget` test. Does it pass?<div><br></div><div>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?</div><div><br></div><div>Utkarsh</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 16, 2017 at 11:29 AM, Elvis Stansvik <span dir="ltr"><<a href="mailto:elvis.stansvik@orexplore.com" target="_blank">elvis.stansvik@orexplore.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Today I tried porting our application from QVTKWidget to the new<br>
QVTKOpenGLWidget available in VTK master. The application works fine<br>
when running with the old QVTKWidget, but after porting to<br>
QVTKOpenGLWidget I get lots of:<br>
<br>
ERROR: In /buildbot/vtk8-builder/build/<wbr>Rendering/OpenGL2/<wbr>vtkTextureObject.cxx,<br>
line 2153<br>
vtkTextureObject (0x275acb0): failed at glCopyTexImage2D 6402 1 OpenGL<br>
errors detected<br>
0 : (1282) Invalid operation<br>
<br>
and all our render windows appear black.<br>
<br>
I followed the advice in the QVTKOpenGLWidget and use<br>
<br>
   QSurfaceFormat::<wbr>setDefaultFormat(<wbr>QVTKOpenGLWidget::<wbr>defaultFormat());<br>
<br>
before constructing the QApplication, to set the correct surface format.<br>
<br>
Does this ring a bell to anyone?<br>
<br>
This is with:<br>
<br>
  Ubuntu 16.04<br>
  Intel HD Graphics 4400<br>
  VTK master @ 97e306e4cdaab9b7b0b25d73da61e2<wbr>20391156b4<br>
<br>
Thanks in advance for any advice. We need to port to QVTKOpenGLWidget<br>
as soon as possible, to get proper support on retina screens.<br>
<br>
Cheers,<br>
Elvis<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtk-<wbr>developers</a><br>
<br>
</blockquote></div><br></div>