set resolution of viewport calls gl:viewport if viewport is current
set resolution of viewport calls gl:viewport if viewport is current

We used to set it before every draw, but that was too much
overhead. This works fine

cbaggers/cepl