View Full Version : Texture ID's

03-29-2003, 01:47 PM
I am haveing a problem. I am using MFC so I call wglcreatecontext before all rendering or openGL stuff. Since I do this, openGL does not seem to save the textureID's assigned during the last context(I think this is the problem but let me know). So glGenTextures(1,&ID) is always returning 1, it doesn't know there were any previous ID's assigned. So basically when I load a new texture, it forgets the last one. THis code can load multiple textures in a regular openGL program where I have the same context the whole time, so I think this is it. But how do I solve this problem?

03-29-2003, 02:52 PM
See http://www.opengl.org/discussion_boards/ubb/Forum2/HTML/011680.html

03-30-2003, 12:57 AM
wglShareLists I see thanks a lot