mirror of
https://github.com/edubart/otclient.git
synced 2025-11-03 12:16:23 +01:00
Add texture abstract class
This commit is contained in:
committed by
Eduardo Bart
parent
ab9351196c
commit
b3b849000d
@@ -29,6 +29,7 @@
|
||||
#include <framework/graphics/painter.h>
|
||||
#include <framework/graphics/image.h>
|
||||
#include <framework/graphics/framebuffermanager.h>
|
||||
#include <framework/graphics/ogl/textureogl.h>
|
||||
#include <framework/core/resourcemanager.h>
|
||||
#include <framework/core/filestream.h>
|
||||
#include <zlib.h>
|
||||
@@ -65,7 +66,7 @@ void MinimapBlock::update()
|
||||
|
||||
if(shouldDraw) {
|
||||
if(!m_texture) {
|
||||
m_texture = TexturePtr(new Texture(image, true));
|
||||
m_texture = TexturePtr(new TextureOGL(image, true));
|
||||
} else {
|
||||
m_texture->uploadPixels(image, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user