Fixes wrong dimensions returned from FBOs.