So when I run my program, the texture it drew was white. I googled around andfound out that it had to do something with a scope. Can anyone tell me why this is happening and how I can fix it? Thanks a bunch :) (The texture in question is the PlayButtonTxtr.png. I'm not using any other texture. (SFML 2)
That's not the problem, Mii. I've been using '//' forever now, and it's always worked. I'm certain it has to be the different scope. At least, that's what I think you meant. Thanks though!
What happened is that I am a blind idiot and you was right from the beginning.
I created ButtonPlayTxtr, etc. in heap instead of stack, so they will not be deleted after function finishes executing. Note that there is memory leak if you are not deleting those vatiables somewhere else.