Search found 1 match
- Sat Oct 08, 2011 6:02 pm
- Forum: Programming Discussion
- Topic: Making STL Vectors and SDL_Surfaces place nicely
- Replies: 16
- Views: 3564
Re: Making STL Vectors and SDL_Surfaces place nicely
Something is not right with your code, you need to make tempSurface a pointer. Outside of that, your code should compile and run fine WITHOUT doing anything to refcount and only freeing the surface from the vector (not twice). I've been using SDL_Surfaces for quite a while now, and have never had to...