1
Graphics / weird error with texture loading
« on: June 21, 2021, 01:12:31 pm »
this is the code:
it doesn't even say the texture path that it tried to open so i don't think that the image is the problem.
sf::Texture texture;
if (!texture.loadFromFile("assets/textures/spaceship.png"))
__debugbreak();
m_Sprite.setTexture(texture);
but i get this error in the console: "Failed to load image "". Reason: Unable to open file"if (!texture.loadFromFile("assets/textures/spaceship.png"))
__debugbreak();
m_Sprite.setTexture(texture);
it doesn't even say the texture path that it tried to open so i don't think that the image is the problem.