[vtkusers] Java SetPixelFormat (in vtkWin32OpenGLRenderWindow) problem

Phil Goddard philgoddard at telus.net
Wed Jul 9 16:25:11 EDT 2008


I'm trying to place a vtkPanel into a ContentPane of an existing UI.
Unfortunately VTK doesn't seem to recognise that the existing app has
already set the pixel format and the "SetPixelFormat failed" error (line 549
of vtkWin32OpenGLRenderWindow.cxx) gets thrown.
The whole app then instantly exits.

Has anyone encountered this before, and is there a workaround?

I tried (somewhat naively) to comment out the exit(1) that follows the error
(lines 552-560 of vtkWin32OpenGLRenderWindow.cxx) but that didn't stop the
app dying.

Any suggestions are appreciated.

Phil.





More information about the vtkusers mailing list