mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-29 00:10:02 -05:00
fix: Only try to delete textures if OpenGL is still available
This commit is contained in:
@@ -288,6 +288,9 @@ namespace ImGuiExt {
|
||||
}
|
||||
|
||||
void Texture::reset() {
|
||||
if (glDeleteTextures == nullptr)
|
||||
return;
|
||||
|
||||
if (m_textureId != 0) {
|
||||
glDeleteTextures(1, reinterpret_cast<GLuint*>(&m_textureId));
|
||||
m_textureId = 0;
|
||||
|
||||
Reference in New Issue
Block a user