1
Graphics / Access violation reading location
« on: February 21, 2021, 10:15:50 am »
I have a very simple c++ code with sfml graphics and I'm trying to read an image into Texture using loadFromFile function and when I try to run it with the visual studio debugger I got an exception for reading violation and I have no idea what causes this problem.
Please help!
This is my code:
Please help!
This is my code:
int main()
{
sf::Texture texture;
texture.loadFromFile("girl.png");
sf::Sprite girl(texture);
return 0;
}
{
sf::Texture texture;
texture.loadFromFile("girl.png");
sf::Sprite girl(texture);
return 0;
}