Tagore D. Smith (tdsmith++at++escher.cs.umass.edu)
Thu, 13 Aug 1998 12:49:43 -0400 (EDT)
I create a texture and hand it a uint* that points to an image in 5551
format, and set the external format to PFTEX_UNSIGNED_SHORT_5_5_5_1. Then
I set the texture to a pfGeoState which is attched to a pfGeoSet. So far
so good. The application runs, the geometry is textured, no problems.
But if I try to format or load the texture the program crashes with:
_pfDirtCheck: pfRealloc of 0 bytes returned NULL.
All of the memory involved is being allocated from the shared arena,
and I am doing the texture load from the draw process.
I notice in the archives that a couple of people were having this same
problem last summer, but it does not seem as if anyone knew what might be
causing it at that time.
If anyone knows what _pfDirtCheck is trying to realloc that might help
quite a bit. I don't see that it would have to realloc the memory for the
texture, as I am not changing its size or bit-depth.
Any help would be greatly appreciated.
Thanks
Tagore Smith
This archive was generated by hypermail 2.0b2 on Thu Aug 13 1998 - 09:50:41 PDT