Render to Texture with cg problem

hi.
I’ve a problem with cg and pbuffer.when I render to texture(under cg) some object with his texture,I’ve
noticed that the texture is ignored!! :eek:
but if I render normally that objects,the texture is correct!!why?

this is my operation:

activepbuffer();
clearpbuffer();

activeCgTextureState();

renderobject();

disableCgTextureState();
disablepbuffer();
restoreContext();

rendQuadWithPbufferTexture();

thanks in advance
Sanddro

Are you using wglShareLists (or your equivalent OS function) to share texture objects across your main and pbuffer contexts?

thanks for your “tips”.now all work well