fixes GL/EGL flares in gunstore