When performing framebuffer transition on legacy opengl platforms, some state was uninitialized. Resulting in incorrect behavior and crashes. Note that this doens't fix the black cube on legacy platforms. With this PR we might be able to reproduce the issue on modern HW. Pull Request: https://projects.blender.org/blender/blender/pulls/123989