set viewport in PGL.drawTexture(), fixes #1869