Problems with textures

New Message Reply Date view Thread view Subject view Author view

Tagore D. Smith (tdsmith++at++escher.cs.umass.edu)
Thu, 13 Aug 1998 12:49:43 -0400 (EDT)


   I'm having a problem with loading textures. I have a suspicion that I
may just be doing something stupid, but I was hoping that someone might be
able to help, as I have been over the manuals/reference pages/example
source a number of times.

   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
     


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Thu Aug 13 1998 - 09:50:41 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.