mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
refactor: remove unused abstraction
This commit is contained in:
parent
e357a4eb9f
commit
8de408fd10
9 changed files with 128 additions and 157 deletions
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include "debug/Logger.hpp"
|
||||
#include "io/io.hpp"
|
||||
#include "graphics/core/GLTexture.hpp"
|
||||
#include "graphics/core/Texture.hpp"
|
||||
#include "graphics/core/ImageData.hpp"
|
||||
|
||||
static debug::Logger logger("png-coder");
|
||||
|
|
@ -205,7 +205,7 @@ std::unique_ptr<ImageData> png::load_image(const ubyte* bytes, size_t size) {
|
|||
|
||||
std::unique_ptr<Texture> png::load_texture(const ubyte* bytes, size_t size) {
|
||||
auto image = load_image(bytes, size);
|
||||
auto texture = GLTexture::from(image.get());
|
||||
auto texture = Texture::from(image.get());
|
||||
texture->setNearestFilter();
|
||||
return texture;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue