[vtkusers] GL_MAX_TEXTURE_SIZE = -858993460 !?

Tim Hutton tim.hutton at gmail.com
Thu Jun 28 08:48:55 EDT 2007


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/



More information about the vtkusers mailing list