mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
leaks fix (valgrind full leak check) in world
This commit is contained in:
parent
f8289a5d78
commit
3b4fc2dfea
10 changed files with 215 additions and 222 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#include "imageio.hpp"
|
||||
|
||||
#include "png.h"
|
||||
#include "png.hpp"
|
||||
#include "../graphics/core/ImageData.hpp"
|
||||
|
||||
#include <filesystem>
|
||||
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
using image_reader = std::function<ImageData*(const std::string&)>;
|
||||
using image_reader = std::function<std::unique_ptr<ImageData>(const std::string&)>;
|
||||
using image_writer = std::function<void(const std::string&, const ImageData*)>;
|
||||
|
||||
static std::unordered_map<std::string, image_reader> readers {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue