03-29-2003, 02: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?