Implements GL clipping with stencil buffers.
Merge pull request #1407 from mbebenita/nat

Implements GL clipping with stencil buffers.