Merry Christmas!
|
The last week has for my part involved a lot of traveling and get-togethers with family, leaving my project a bit unattended. While I have worked on setting up a move function and prepare proper graphics, I’ve encountered a pretty major set-back in the shape of a memory leak. While changing around to get the new sprite into the code, I somehow managed to break SDL_Texture, causing a break at any time when I try to run a debug. I have isolated the occurrence to my DrawManager.cpp, specifically the Draw function. With the following code causing it: SDL_RenderCopy(m_renderer, sprite->GetTexture(), sprite->GetRegion(), dest); From this my logical next step will be to see if I can find what is wrong and fix it, since without this code I am unable to display any sprites. If I can just fix the leak I should be able to proceed with the rest as planned. Hopefully I will have this sorted soon enough. Merry Christmas and Happy New Year! /Stefan |