So, I'm trying to create a sprite class for my game however I can't seem to get it to work.
When trying to render my texture using SDL_RenderCopy() it causes a exception and my game crashes with the error :
Access violation reading location 0xDDDDDDDD.
When checking SDL_GetError() right before I try to render the texture, there are no errors.
So far, I know that the error means I'm trying to use a "bad" pointer, however I can't seem to find any bad pointers in my code.
This is what my sprite class …