Implement DepthBufferEnable and StencilEnable