SFML community forums
Help => Graphics => Topic started by: tbop on June 27, 2013, 05:16:07 pm
-
Hi,
I have a question regarding sharing lists (in our case just textures) with an external (not sfml) OpenGL context (rendered via a sf::RenderTexture):
Is there a proper way to share the lists with an external context?
Or do we have to get the buffer from the texture and upload it a texture of the external context and so on... But it could lead to performance issues so I'm trying to find out whether it's possible (perhaps we have to alter SFML's source code?)
Cheers!
-
Get the SFML context with wglGetCurrentContext (or equivalent according to your OS), and then you can share your external context with it easily. Note that you can get any SFML context, since they are all shared internally.
-
Ok that was pretty simple after all, cheers.