AbstractTexture: Fix crash in Vulkan backend when freeing texture

This commit is contained in:
Stenzek
2018-01-26 18:32:33 +10:00
parent 9a6644d06c
commit 81ae88d2d5
5 changed files with 4 additions and 7 deletions

View File

@ -121,6 +121,7 @@ OGLTexture::OGLTexture(const TextureConfig& tex_config) : AbstractTexture(tex_co
OGLTexture::~OGLTexture()
{
g_renderer->UnbindTexture(this);
if (m_texId)
glDeleteTextures(1, &m_texId);