diff --git a/src/gl/textures/gl_hwtexture.cpp b/src/gl/textures/gl_hwtexture.cpp index e035734f9a..3120192c7a 100644 --- a/src/gl/textures/gl_hwtexture.cpp +++ b/src/gl/textures/gl_hwtexture.cpp @@ -353,6 +353,7 @@ void FHardwareTexture::Clean(bool all) } glTex_Translated.Clear(); if (glDepthID != 0) glDeleteRenderbuffers(1, &glDepthID); + glDepthID = 0; } //===========================================================================