Fixed issue with stencil buffer not being created.