Misc changes to fix deferred renderer for arbitrary resolutions