I have recently started working on a small program with SDL2 and c++. In this program I used IMG_LoadTexture()
to load a texture however it just would not want to work, the program could not find the image. So I chanced my program to use SDL_loadBMP()
, did not work. After hours of endlessly looking for bugs I still could not find anything.
When I started my project I saved it to my D:
disk and not on my C:
disk. So when I was about to give up on the whole project I copied my exe, image and libraries to my C:
disk and Boom it worked.
So I have no idea why this happens. I refer to my image with a relative path but it just doesn't want to work on my D:
disk. Is this a bug? or might it have something to do with settings related to my disk? And how can I make it work on my D:
disk?
P.S. I am using windows 7
P.S.S. My apologies in advance for any horrible grammar and spelling mistakes.