summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/AbstractTexture.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2018-01-21 23:13:25 +1000
committerStenzek <stenzek@gmail.com>2018-01-22 13:22:09 +1000
commit38e0b6e2ab53374e7335fee94209bb90cb3e9ed2 (patch)
treea64d1b48bc9f7fedc5c9d83475d58b1118cb1057 /Source/Core/VideoCommon/AbstractTexture.cpp
parentfca56d532a4da844c324d7a4ea05252e72d89fcf (diff)
AbstractTexture: Move Bind() method to Renderer
This makes state tracking simpler, and enables easier porting to command lists later on.
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)
{