OpenGL context and Textures

Igor Kravtchenko <[email protected]> Mon, 03 Jul 2006 08:39:22 -0800
Newsgroups gmane.games.devel.opengl
Organization Fat City Network Services, San Diego, California
Message-ID <[email protected]>
Hi,

I'm using a Pbuffer which is supposed to share textures with the main 
rendering context via a call to:
wglShareLists()
(Win32 implementation)

It can happen that, sometimes, I make a call to a glDeleteTextures() in 
context #2 whereas the
texture was created in context #1.  I thought it couldn't be a problem 
since textures are shared, right?
However I just debugged my application with gDEBugger (an OpenGL 
debugger) that gives me
a warning with something like: "Invalid: trying to delete a texture in 
another context".

Ermpf, I'm a little lost...
Do I really need to delete my texture in the exact same context that the 
one where I created it?

Thanks for any help,

Igor.

----- 
FAQ and OpenGL Resources at:
  http://www.geocities.com/SiliconValley/Hills/9956/OpenGL

-- 
Author: Igor Kravtchenko
  INET: [email protected]

Fat City Hosting, San Diego, California -- http://www.fatcity.com
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [email protected] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB OPENGL-GAMEDEV-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).