Invalidate depth and stencil buffers after finishing the rendering