Commit c39f4ab
NativeEngine: report depth present when stencil-without-depth allocates depth/stencil
When generateStencilBuffer is requested without generateDepth, CreateFrameBuffer still allocates a combined D24S8 depth/stencil attachment, but the FrameBuffer was constructed with hasDepth=generateDepth (false). That made HasDepth() return false, so Clear/DrawInternal skipped depth clear and Z-writes against a depth buffer that actually exists. Report hasDepth as (generateDepth || generateStencilBuffer).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 73adf6f commit c39f4ab
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1878 | 1878 | | |
1879 | 1879 | | |
1880 | 1880 | | |
1881 | | - | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
1882 | 1886 | | |
1883 | 1887 | | |
1884 | 1888 | | |
| |||
0 commit comments