Commit ce5904d
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 33d1859 commit ce5904d
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1871 | 1871 | | |
1872 | 1872 | | |
1873 | 1873 | | |
1874 | | - | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
1875 | 1879 | | |
1876 | 1880 | | |
1877 | 1881 | | |
| |||
0 commit comments