Re: pfTexture and gl

New Message Reply Date view Thread view Subject view Author view

From: Don Burns (don_burns++at++peru.engr.sgi.com)
Date: 06/02/2000 11:32:38


On Jun 2, 9:27pm, Devrim Erdem wrote:
> Subject: Re: pfTexture and gl
> Don Burns wrote:
>
> > > glIsTexture returns GL_FALSE
> >
> > So, the problem is that the texture has probably not been used yet.
pfTextures
> > do not become glTextures until either the geoset using them has been drawn
or
> > pfTexture->load() has been called. Try calling load() before
glGetHandle().
>
> Right after calling theTexture->load(), my app exists with the following
error
> message :
>
> => fatal _pfDirtCheck: pfRealloc of 0 bytes returned NULL.
>
> Any ideas.
>
> /*===============================================
> M. Devrim Erdem devrim++at++infotron.com.tr
> Software Engineering
>
> info(+)TRON, Turkey
> Tel: +90 216 4921002, Ext 138
> Fax: +90 216 3432132
> http://www.infotron-tr.com
> http://abone.turk.net/mderdem
> ===============================================*/
>
>-- End of excerpt from Devrim Erdem

Call it from DRAW. You must have a valid graphics context to load textures.
 If you are doing this at initialization time, use a pipe window config
callback.

-don


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Jun 02 2000 - 11:33:34 PDT

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