PickleWorld
05-12-2010, 02:08 PM
Is there an easy way to copy the contents of the stencil buffer to main memory?
You can copy the depth or frame buffer with glCopyTexImage2D(... GL_RGBA/GL_DEPTH_COMPONENT, ....) but the spec says nothing about stencil?
Is it possible? Or do I have to clear the framebuffer, set the stencil, draw a black quad and then copy the framebuffer or something every time instead?
You can copy the depth or frame buffer with glCopyTexImage2D(... GL_RGBA/GL_DEPTH_COMPONENT, ....) but the spec says nothing about stencil?
Is it possible? Or do I have to clear the framebuffer, set the stencil, draw a black quad and then copy the framebuffer or something every time instead?