[vtk-developers] vtkGenericOpenGLRenderWindow crashes TestSetGet

Jean-Christophe Fillion-Robin jchris.fillionr at kitware.com
Fri May 11 14:04:56 EDT 2012


+1 for to centralize the wrapper documentation :) Would be happy to read
through it.
Thanks
Jc

On Fri, May 11, 2012 at 11:46 AM, David Gobbi <david.gobbi at gmail.com> wrote:

> Hi Brad,
>
> It seems that vtkTextureUnitManager isn't in
> vtkRenderingOpenGLHierarchy.txt, so the wrappers no longer
> automatically exclude methods that use it as a parameter.  I'll
> look into this, I think that something is missing either from the
> CMakeLists.txt or from one of the cmake wrapping macros.
> The new BTX/ETX behavior that was brought into VTK in 5.8
> is documented here:
>
> http://www.vtk.org/Wiki/VTK/Remove_BTX_ETX
>
> I need to add a "Wrapping" section to the wiki that links to the
> various wiki pages that are related to wrapping... there's a fair bit
> of documentation for the wrappers, but none of it is easy to find.
>
>  - David
>
>
> On Fri, May 11, 2012 at 9:08 AM, Brad King <brad.king at kitware.com> wrote:
> > Hi Folks,
> >
> > TestSetGet currently crashes:
> >
> >  http://open.cdash.org/testDetails.php?test=145727028&build=2266971
> >
> > when running against a Mesa GL library.  It appears to call
> > glGetString(GL_RENDERER) without a GL context.
> >
> > At some point during the modularization transition the Tcl wrappers
> > started seeing vtkOpenGLRenderWindow::GetTextureUnitManager even
> > though it is in a BTX/ETX block (David G?).  That exposes this
> > existing problem.
> >
> > Essentially the test runs
> >
> >  package require vtk
> >  vtkGenericOpenGLRenderWindow x
> >  x GetTextureUnitManager
> >
> > but one can simplify it to
> >
> >  package require vtk
> >  vtkGenericOpenGLRenderWindow x
> >  [x GetHardwareSupport] GetNumberOfTextureUnits
> >
> > or even just
> >
> >  vtkGenericOpenGLRenderWindow x
> >  [x GetExtensionManager] ExtensionSupported "GL_VERSION_2_0"
> >
> > The method vtkOpenGLExtensionManager::ExtensionSupported has:
> >
> >  const char *gl_renderer=
> >    reinterpret_cast<const char *>(glGetString(GL_RENDERER));
> >
> > but it is not safe to call glGetString without a context.
> >
> > -Brad
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>


-- 
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120511/39813899/attachment.html>


More information about the vtk-developers mailing list