Problem when loading more than 128 textures
Posted: Sun Jun 21, 2009 2:29 pm
Hello
Context : Irrlicht 1.5, Win32, OpenGL or DirectX
I have some textures that I load :
driver->getTexture(...)
driver->getTexture(...)
and then I unload everything :
driver->removeAllTextures();
When I repeat this until driver->getTexture is called 128 times, my program no longer displays textures correctly (ie : some of the textured quads are not visible). I'm not calling drop() on any loaded texture.
Looking at the OpenGL driver code, I can't see why there would be any limitation on 128 textures loaded.
Any idea of what could cause this ?
I'll try to reproduce the bug on a standard demo
Context : Irrlicht 1.5, Win32, OpenGL or DirectX
I have some textures that I load :
driver->getTexture(...)
driver->getTexture(...)
and then I unload everything :
driver->removeAllTextures();
When I repeat this until driver->getTexture is called 128 times, my program no longer displays textures correctly (ie : some of the textured quads are not visible). I'm not calling drop() on any loaded texture.
Looking at the OpenGL driver code, I can't see why there would be any limitation on 128 textures loaded.
Any idea of what could cause this ?
I'll try to reproduce the bug on a standard demo