How to reproduce:
1. Open the “IN-109833_SpriteShapeRenderer“ project
2. Open the “SampleScene”
3. Go to Window > Analysis > Frame Debugger
4. In the Frame Debugger window click “Enable”
5. Expand the “Renderer2D Pass/RenderLoop.Draw”
6. Click on “Draw Dynamic” and observe the Stencil values
7. Click on “Draw Mesh” and observe the Stencil values
Expected result: Stencil values are preserved for the "Closed Sprite Shape" GameObject
Actual result: Stencil values are overwritten for the "Closed Sprite Shape" GameObject
Reproducible with: 6000.0.2f1, 6000.0.55f1, 6000.1.16f1, 6000.2.0f1, 6000.3.0a4
Not reproducible with: 6000.0.1f1
Reproducible on: macOS 15.5 (M1 Max), Windows 11 (by user)
Not reproducible on: no other environments tested
Note: In 6000.0.1f1 the Draw call is named “SRP Batch” and draws both Sprites with Stencil values preserved