Fix for SDK GL bug in using a sub-region of the viewport