mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 20:43:15 +00:00
- fixed: When deleting a camera texture's depth buffer, the corresponding variable must also be cleared.
Thanks to OpenGL's messed up state system this didn't cause some clear failure but just reused the last bound buffer instead which may not have had a matching size.
This commit is contained in:
parent
d58d1e21d0
commit
2c86c4e942
1 changed files with 1 additions and 0 deletions
|
@ -353,6 +353,7 @@ void FHardwareTexture::Clean(bool all)
|
||||||
}
|
}
|
||||||
glTex_Translated.Clear();
|
glTex_Translated.Clear();
|
||||||
if (glDepthID != 0) glDeleteRenderbuffers(1, &glDepthID);
|
if (glDepthID != 0) glDeleteRenderbuffers(1, &glDepthID);
|
||||||
|
glDepthID = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
Loading…
Reference in a new issue