I'm wondering if we can be smarter about this with regards to the stencil buffer. Maybe make a note of whether the stencil buffer was actually created and use that value if stencil is null.