Fixed black artifacts when running at non-multiple resolutions

Signed-off-by: blucoat <jameshagborg@gmail.com>