[vtkusers] GL_MAX_TEXTURE_SIZE = -858993460 !?

David Cole david.cole at kitware.com
Thu Jun 28 08:54:14 EDT 2007


A google for "OpenGL error code" took me to an msdn page listing some error
codes... which led me the documentation page for "glGetError" :

https://msdn2.microsoft.com/en-us/library/ms537109.aspx


On 6/28/07, Tim Hutton <tim.hutton at gmail.com> wrote:
>
> Ah yes, maxDimGL does have that value when it goes in, so I guess that
> call is simply now writing to the variable. I don't see any opengl or
> vtk errors prior to that point. How do I retrieve the opengl error
> code?
>
>
> On 28/06/07, David Cole <david.cole at kitware.com> wrote:
> > This value is 0xcccccccc which means that it is a local uninitialized
> > variable. Perhaps glGetInteger is returning without putting the value in
> > there...? Do you see any other errors (OpenGL related perhaps) prior to
> this
> > occurring...?
> >
> > If you init maxDimGL to 0 before the call does it still happen...?
> >
> >
> >
> > On 6/28/07, Tim Hutton <tim.hutton at gmail.com > wrote:
> > >
> > > I'm getting a bad_alloc exception sometimes when I try to load a
> > > textured surface in VTK. The error is due to the following line in
> > > vtkopengltexture.cxx (167):
> > >
> > > glGetIntegerv(GL_MAX_TEXTURE_SIZE,&maxDimGL);
> > >
> > > which returns a value of -858993460. On other occasions it returns a
> > > value of 4096 and everything works fine.
> > >
> > > Have you come across anything similar before?
> > >
> > > Platform:
> > > vtk5.0.3
> > > win xp
> > > microsoft visual studio 7
> > >
> > > Thanks,
> > >
> > > Tim
> > > _______________________________________________
> > > This is the private VTK discussion list.
> > > Please keep messages on-topic. Check the FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> > > Follow this link to subscribe/unsubscribe:
> > > http://www.vtk.org/mailman/listinfo/vtkusers
> > >
> >
> >
>
>
> --
> Tim Hutton - http://www.sq3.org.uk
>
> Take the Organic Builder challenge -
> http://www.sq3.org.uk/Evolution/Squirm3/OrganicBuilder/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070628/8dafd34a/attachment.htm>


More information about the vtkusers mailing list