PDA

View Full Version : Use a pbuffer as texture while rendering in another pbuffer



EpSiLoN
11-11-2003, 02:40 AM
Hi,
i have written a library to do rendering in a texture but i have noticed a strange thing. When i do a rendering in a texture(pbuffer) and i use another pbuffer as texture(not the same pbuffer) but it doesn't work.
Is there a limitation to use a pbuffer as framebuffer while i use another pbuffer as texture?

Thank you.

[This message has been edited by EpSiLoN (edited 11-11-2003).]

rgpc
11-11-2003, 03:17 AM
It doesn't work

Sounds like a user.

Are you calling wglShareLists()?

EpSiLoN
11-11-2003, 03:47 AM
No, i don't call wglShareLists().

rgpc
11-11-2003, 04:48 PM
Well that's most likely your problem. A texture in one context is not valid in another context unless you call wglShareLists() (or it's *nix/Mac equivalent I presume).