1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

OpenGLFrameBuffer: Add early-exit in ~TransientState

This commit is contained in:
reuk 2025-07-03 15:57:07 +01:00
parent 1900dd4e4a
commit ac65cc5434
No known key found for this signature in database

View file

@ -375,8 +375,9 @@ private:
~TransientState()
{
if (OpenGLHelpers::isContextActive())
{
if (! OpenGLHelpers::isContextActive())
return;
if (textureID != 0)
gl::glDeleteTextures (1, &textureID);
@ -388,7 +389,6 @@ private:
JUCE_CHECK_OPENGL_ERROR
}
}
bool createdOk() const
{