When loading a texture in SDL2 the general procedure is this:
SDL_Texture* texture = IMG_LoadTexture(renderer, "resources/images/image.png);
However this doesn't work and I have to supply the WHOLE path to the specific image. The code that I have to use is:
SDL_Texture* texture = IMG_LoadTexture(renderer, "/home/user/programs/game/resources/images/image.png);
This issue doesn't occur in a Windows Mingw32 environment.
Any suggestion on how to fix this issue?