Hi\n\nI have to write a simple game to school. It is first thing I am\nwriting using c++ and first time I am using SDL and OpenGL. I run into\na problem which I cannot solve or diagnose by myself.\nI have noticed that if I load more textures they start to behave\nstrangely. Let me to explain it on example.\nIt is simple 2d game. I have ship controlled by player, asteroids and\nbackground. Each have its own textures. All asteroids have the same\nset of textures which I change so it looks like it is animated.\nLet's say I put 30 such objects into a scene. Then I notice that few\nof them is invisible. They do not have texture applied. The problem\nbecome worse with the number of loaded textures but not with their\nsize. I have background composed of few textures 1024x1024 and if I\nswitch it off it does not make any difference.\nWhat is most weird if I run program under Eclipse in debug mode then\neverything looks ok. If I run the same .exe from Windows it is broken.\n\nI have been checking my code for 3 days and I stuck. There is nothing\nmore I am able to do.\nI would appreciate any help.\nI can share my code but I cannot extract small part from it, which\ncould show a problem.\n\nBest regards\nMichal M.