I currently have 2 OpenGL rendering contexts. The first is a double buffered 800x600 rendering buffer, and the second is a 1024x1024 Device Independent Bitmap (created using CreateDIBSection), that I am using to render a large texture to. I want to share the texture with the first context after I have rendered over it and read it back using glCopyTexSubImage2D(), but wglShareLists returns 0 after the contexts have been initially created.
Is this possible to do ? This is running using Microsofts OpenGL implementation at the moment - unaccelerated.
How identical do my Pixel Formats have to be for wglShareLists to work OK ? Evidently the double buffered context is to a window, and the DIB is to a Bitmap, so they have to be different…
Can anyone shed any light on how to do this ?