From 99d12c9fbb72978e505b72c1c8e761051fa03f2f Mon Sep 17 00:00:00 2001 From: oy Date: Mon, 17 Dec 2018 17:20:01 +0100 Subject: [PATCH] small improvement --- src/engine/client/backend_sdl.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/engine/client/backend_sdl.cpp b/src/engine/client/backend_sdl.cpp index 625db0583..1bf9ae531 100644 --- a/src/engine/client/backend_sdl.cpp +++ b/src/engine/client/backend_sdl.cpp @@ -274,10 +274,7 @@ void CCommandProcessorFragment_OpenGL::Cmd_Texture_Destroy(const CCommandBuffer: if(m_aTextures[pCommand->m_Slot].m_State&CTexture::STATE_TEX2D) glDeleteTextures(1, &m_aTextures[pCommand->m_Slot].m_Tex2D); if(m_aTextures[pCommand->m_Slot].m_State&CTexture::STATE_TEX3D) - { - for(int i = 0; i < m_TextureArraySize; ++i) - glDeleteTextures(1, &m_aTextures[pCommand->m_Slot].m_Tex3D[i]); - } + glDeleteTextures(m_TextureArraySize, m_aTextures[pCommand->m_Slot].m_Tex3D); *m_pTextureMemoryUsage -= m_aTextures[pCommand->m_Slot].m_MemSize; m_aTextures[pCommand->m_Slot].m_State = CTexture::STATE_EMPTY; m_aTextures[pCommand->m_Slot].m_MemSize = 0;