I get an error which I previously hadn't gotten without much of a change to explain it. I'm loading an image and I get an error saying I'm out of memory. I have plenty of ram left and similar images had loaded fine before. Does SFML have some sort of memory limit I'm not aware of for this function:
sf::Image *ImageManager::addImage(std::string imgPath) {
sf::Image *image = new sf::Image();
if (!image->loadFromFile(imgPath))
{
// error...
}
images.push_back(image);
return image;
}
Specifically load from file? For reference the image is only 36865KB.