Added stencil buffer clearing to Window class.