From ef7f9da31775ce762e217fc8dc549537df80bbc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Mon, 1 Jul 2019 23:21:01 -0300 Subject: [PATCH] Texture minor fixes. --HG-- branch : dev --- src/eepp/graphics/texture.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/eepp/graphics/texture.cpp b/src/eepp/graphics/texture.cpp index 2ec611311..d3ef9c9e0 100755 --- a/src/eepp/graphics/texture.cpp +++ b/src/eepp/graphics/texture.cpp @@ -46,7 +46,7 @@ Texture::Texture() : } Texture::Texture( const Texture& Copy ) : - DrawableResource( Drawable::TEXTURE, mName ), + DrawableResource( Drawable::TEXTURE, Copy.mName ), Image(), mFilepath( Copy.mFilepath ), mTexture( Copy.mTexture ), @@ -238,6 +238,11 @@ bool Texture::unlock( const bool& KeepData, const bool& Modified ) { return false; #else + if ( ( mFlags & TEX_FLAG_LOCKED ) ) { + mFlags &= ~TEX_FLAG_LOCKED; + return true; + } + return false; #endif }