Skip to main content
GameDev.net gamedev.net
🔒 Locked

Sharing texture between OpenGL contexts

Started by polar01 Sep 7, 2010 at 3:17 AM 0 replies 1.1k views
Original Post
polar01
polar01
Hi,

Here we are doing some 'off screen' rendering (Under Windows) and so we are rendering into a 'bitmap'.

The problem is that we create a new gl-context, then render to the bitmap but it sounds that the textures are not shared.

"Bitmap rendering" is not hardware accelerated !

A solution will be to use PBO, render into it etc... but in some cases PBO are not supported !

So, I would like to find a way to share the textures from the initial GL context to the new one. Do you know a way of doing this ?

Thanks
--------------------------------------------------------------------------------Aurora Studio - PureLight - Animation & rendering software and API.http://www.polarlights.net
AndyEsser
AndyEsser
If this is on Windows, try out wglShareLists(), that might point you in the right direction.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.