PDA

View Full Version : pbuffer, and backbuffer cant share textures??



HelloKitty
06-18-2003, 04:16 PM
ok...

1)set backbuffer
2)GenTextures 1-5
3)set pbuffer
4)GenTextures 1-5

WHY does GenTexture start over at 1. It should be 6-10. Can one not access the other? huh? what a mess!

Thanks

Thaellin
06-18-2003, 04:29 PM
Hi,

I have not really worked with these, but since a pbuffer has its own context, the wglShareLists function comes to mind...

-- Jeff

HelloKitty
06-18-2003, 04:48 PM
A correct reply took 13 minutes!!! http://www.opengl.org/discussion_boards/ubb/eek.gif
Thanks for your help Thaellin, it works now!!

skynet
06-19-2003, 02:42 AM
As far as I understood, a pbuffer doesn´t require its own rendercontext. Just supply the opengl rendering context when making the device context of the pbuffer current:

wglMakeCurrent(hDC [<-pbuffers!], hRC [<-rendercontext of primary window]);

knackered
06-19-2003, 03:17 AM
needs to have the same pixel format as the DC that was used to create the RC. This shouldn't be a problem, but you may not want your pbuffer to have a stencil buffer etc.