mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
AbstractTexture: Fix crash in Vulkan backend when freeing texture
This commit is contained in:
parent
9a6644d06c
commit
81ae88d2d5
5 changed files with 4 additions and 7 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue