replace viewport check by clamping

The viewport dimension check was buggy (wrong upper limits).
We don't need it there anyway, rather, we clamp the coordinates
in the viewport() implementation in the Blitbuffer API.