Hello,
I'm currently working on an engine which has a resource manager which loads and unloads all textures, meshes, shaders automatically but sometimes if a mesh/texture is unloaded, but other meshes/textures also disappear. After letting the engine print out all texture and mesh id's which you get from glGenTextures/glGenBuffers, i noticed that some id's are the same (The output from println:
http://pastebin.com/ib7uATmW).
In the file on pastebin is the id of the plane ibo and the id of the logo texture (which the engine deletes from the GPU after 10secs if its not used) the same and if the logo texture gets deleted with glDeleteBuffers, all plane meshes disappear (there are still some sphere meshes in the scene which stay there)
And I don't really know if I made a really stupid mistake or if there's something wrong with glGenTextures/glGenBuffers.
Edit:
The source code of the Mesh and the Texture class:
Mesh:
http://pastebin.com/wjxVdu6vTexture:
http://pastebin.com/D6iCD1U3I hope you can understand the problem and maybe know a solution to it and thanks in advance for helping me,
Katsu