Fix viewport tearing.
Properly pass dx and bp
Merge pull request #1 from duncanspumpkin/viewport

Fix viewport tearing issue