Load image directly
Co-authored-by: Celtic Minstrel <CelticMinstrel@users.noreply.github.com>
This commit is contained in:
@@ -4249,9 +4249,7 @@ public:
|
||||
}
|
||||
// Get image data from sheets not in memory
|
||||
else{
|
||||
sf::Texture texture;
|
||||
texture.loadFromFile((pic_dir/("sheet" + std::to_string(idx) + ".png")).string());
|
||||
sheets[idx] = texture.copyToImage();
|
||||
sheets[idx].loadFromFile((pic_dir/("sheet" + std::to_string(idx) + ".png")).string());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user