Fixed bug related to FrameBuffer width/height goes out of date.
Fixes #1129
Merge pull request #1310 from seanpaultaylor/next

Fixed bug related to FrameBuffer width/height goes out of date.