1771
Graphics / Re: Sprite and Texture errors
« on: September 04, 2012, 07:34:22 pm »
Use vector of raw pointers or smart pointers or try do: vector.reserve() with int amount of textures you will ever load(but if you load more than that the vector will realocate and any removal will invalidate pointers to all elements after removed element). If reserve doesn't work then just go with some pointers.