diff options
| author | Stenzek <stenzek@gmail.com> | 2018-01-21 23:13:25 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2018-01-22 13:22:09 +1000 |
| commit | 38e0b6e2ab53374e7335fee94209bb90cb3e9ed2 (patch) | |
| tree | a64d1b48bc9f7fedc5c9d83475d58b1118cb1057 /Source/Core/VideoCommon/AbstractTexture.cpp | |
| parent | fca56d532a4da844c324d7a4ea05252e72d89fcf (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.cpp | 5 |
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) { |
