get the current FBO from the primary surface, fixes #2391