I know this might be a painful question since there are countless topics regarding mixing SFML and OpenGL that suggests wrapping SFML draw calls in pushGLStates() popGLStates(), but this is a bit more complicated matter.
The project Attract Mode I'm contributing to uses SFML framework, but also gameSWF that draws swf files on rendertextures using plain OpenGL. The SFML and gameSWF were playing nicely until SFML 2.5.0, so I'm wondering what has changed in the SFML that made the Attract Mode corrupting the rendering ( and even fonts in MSI Afterburner's OSD and crashing the VMWare sessions ) whenever the swf file is loaded.
The advices regarding usage of push/popGLStates() were based on a situation when you draw SFML stuff surrounded by OpenGL, but what if it's other way round? AM uses mainly SFML for rendering, but the Image class sometimes loads swf instead of an image, and the order of draws is based on the dynamic script written in Squirrel language. In this case OpenGL is surrounded by SFML code. Using push/popGLStates() might be a bit problematic since it would require wrapping every draw call in this and it's quite expensive as the documentation explains.
I know, no one has time for digging through some random repo, but maybe some kind soul would find some spare time to drop some ideas, or give some directions to what we should check to make AM back on it's track.
https://github.com/mickelson/attractthe files of interest are swf.cpp and fe_image.cpp