[vtkusers] GL_MAX_TEXTURE_SIZE = -858993460 !?
David Cole
david.cole at kitware.com
Thu Jun 28 07:25:36 EDT 2007
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070628/e41c3027/attachment.htm>
More information about the vtkusers
mailing list