GL_INVALID_FRAMEBUFFER_OPERATION when moving OpenGL app to another monitor

I have discovered an issue, where if an app using OpenGL is dragged to another display, I hit an assertion with:

***** GL_INVALID_FRAMEBUFFER_OPERATION  at <path-to>/JUCE/modules/juce_opengl/opengl/juce_OpenGLGraphicsContext.cpp : 1375
JUCE Assertion failure in juce_opengl.cpp:216

This is both on current master and develop.
I am on macOS 10.14.1, 2013 15" MacBook Pro with NVIDIA GeForce GT 650M 1024 MB and Intel HD Graphics 4000 1536 MB

Thanks for reporting. I’ve pushed a workaround in 6dda52b which will avoid drawing if the frame buffer isn’t ready, I’ve tested this with the JUCE demos and it seems OK but I’d be interested to know if you see any graphical issues using this fix.

1 Like

Sorry it took so long to get back to you, unfortunately the problem isn’t solved, I still hit the assertion.
I’ll PM you a link to a test project.

1 Like

Hey was there ever a resolve for this, having the same issue.