Hi,
I have a program that loads ~15 sprites from my hard drive, from predetermined paths.
for (std::string path : textures_to_load)
{
sf::Texture texture;
if (!texture.loadFromFile(path))
{
return 1;
}
//other stuff
}
This code crashes at some point during the 'for' loop.
Sometimes is successfully parses 4 textures, sometimes 12.
"other stuff" never causes a crash.
The program exits with code -1073741819.
Debugger crashes at GLContext.cpp, line 283. output:
Exception thrown: read access violation.
extensionString was nullptr.
I'm using Visual Studio 2022, compiled SFML from source (for VS2022, Debug, 64).