Archived

This topic is now archived and is closed to further replies.

Matt da Monkey

Validity of texture names from glGenTextures(...)

Recommended Posts

Matt da Monkey    122
Are the texture names that you get by means of glGenTextures valid across different rendering contexts? can you trustfully share textures amongst different contexts? it seems that you can do so, but is this standard? has anyone ever found any concise info about this? There seem to be a lack of information about this fact, maybe because the rendering context thing isn''t really part of OpenGL itself, just an adaptation to the underlying GUI, in DirectX is quite straightforward... textures are related to devices, but OpenGL contexts encapsulate not only the device, but also the target window/bitmap etc... and hide them all, so it isn''t that clear, has anyone worked with a multidevice OpenGL architecture (like those Origin SGIs) and have a clear idea about this? Regards Matt

Share this post


Link to post
Share on other sites
Jallen    122
If you want to share textures across rendering contexts you have to use wglShareLists (which shares display lists, textures, vertex programs, etc...).

Jason A.

---
I write code.
DelphiGL (http://delphigl.cfxweb.net)

Share this post


Link to post
Share on other sites