mirror of
https://github.com/edubart/otclient.git
synced 2025-12-15 05:09:46 +01:00
Add texture abstract class
This commit is contained in:
committed by
Eduardo Bart
parent
ab9351196c
commit
b3b849000d
@@ -30,6 +30,7 @@
|
||||
#include <framework/graphics/particlemanager.h>
|
||||
#include <framework/graphics/texturemanager.h>
|
||||
#include <framework/graphics/painter.h>
|
||||
#include <framework/graphics/ogl/textureogl.h>
|
||||
|
||||
#ifdef FW_SOUND
|
||||
#include <framework/sound/soundmanager.h>
|
||||
@@ -232,7 +233,7 @@ void GraphicalApplication::resize(const Size& size)
|
||||
m_onInputEvent = false;
|
||||
|
||||
if(g_graphics.canCacheBackbuffer()) {
|
||||
m_foreground = TexturePtr(new Texture(size));
|
||||
m_foreground = TexturePtr(new TextureOGL(size));
|
||||
m_foreground->setUpsideDown(true);
|
||||
}
|
||||
m_mustRepaint = true;
|
||||
|
||||
Reference in New Issue
Block a user