Check framebuffer status before attempting to render.
Merge pull request #1658 from AnalyticalGraphicsInc/issue1568

Fix Issue 1568