I have an undefined number of display context and each will display a texture. When I call glGenTextures I get the same name returned across all display contexts. Will this work? Even though they have the same name will they still store and display different textures? If not what should do to get around this?
+2
A:
Textures are not (by default) shared across contexts - you have to explicitly enable this, but how you do so is platform-specific.
On win32, it's wglShareLists
, and on most other platforms it's specified when you create the context (eg. with the share
parameter to aglCreateContext
on OS-X).
Menkboy
2008-10-24 02:49:52
A:
To my knowledge I have not enabled any texture sharing. however, the same texture is being displayed across all display contexts.
Dan Vogel
2008-10-24 23:05:39
How are you creating the graphics-context? What's your platform?
Menkboy
2008-10-25 03:26:20