So I'm learning SFML, and in my game I've created a platform object, with its own sprite and texture. The texture is simply a grey square.
In my main() function, I call window.setMouseVisible(false) and create a new sprite to use as a custom cursor. The cursor texture is a black circle with a dot in it.
Now when I create some platforms in my code, then run the program, all of the platforms use the cursor texture, scaled up to the size of their original texture. It seems for some reason, the platform objects are taking the texture of the cursor. I've tried removing the cursor texture, but then the platforms have no textures, they're just white squares.
Any reason for this? It sounds like the platform textures are going out of scope, but unless I've forgotten all of my programming lessons, I don't think that's the case. And even if they were, why would they be taking the cursor's texture?