summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/AbstractTexture.cpp
diff options
context:
space:
mode:
authorMarkus Wick <degasus@users.noreply.github.com>2018-01-24 12:19:53 +0100
committerGitHub <noreply@github.com>2018-01-24 12:19:53 +0100
commitc66156148dd6ced799f10313cfe6c60e5189ac89 (patch)
tree594a3ade77c1484e9b4b899493ffeac0a6a7b358 /Source/Core/VideoCommon/AbstractTexture.cpp
parentc3dc8bf1c0fd8151fed6557a90a72040361ae394 (diff)
parent38e0b6e2ab53374e7335fee94209bb90cb3e9ed2 (diff)
Merge pull request #6317 from stenzek/renderer-bind
AbstractTexture: Move Bind() method to Renderer
Diffstat (limited to 'Source/Core/VideoCommon/AbstractTexture.cpp')
-rw-r--r--Source/Core/VideoCommon/AbstractTexture.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/AbstractTexture.cpp b/Source/Core/VideoCommon/AbstractTexture.cpp
index 896d75feb8..c3df347e48 100644
--- a/Source/Core/VideoCommon/AbstractTexture.cpp
+++ b/Source/Core/VideoCommon/AbstractTexture.cpp
@@ -15,7 +15,10 @@ AbstractTexture::AbstractTexture(const TextureConfig& c) : m_config(c)
{
}
-AbstractTexture::~AbstractTexture() = default;
+AbstractTexture::~AbstractTexture()
+{
+ g_renderer->UnbindTexture(this);
+}
bool AbstractTexture::Save(const std::string& filename, unsigned int level)
{