Commit f261b16
Make emulate_VK_EXT_surface_maintenance1 more comply to vk spec
The emulation function does not comply with specifications.
The spec asks ```The implementation must include the present mode
passed to VkSurfacePresentModeEXT in pPresentModes,
unless presentModeCount is zero.``` But now the implementation here
will always include the present mode regardless of whether
presentModeCount is zero.
According to spec ```If the value of presentModeCount is less than
the number of compatible present modes that are supported, at most
presentModeCount values will be written to pPresentModes.``` When
presentModeCount is 0, at most 0 values will be written to
pPresentModes, in other words the implementation should do nothing
in this situation.
This commit fixed the above issue.1 parent 32e64d1 commit f261b16
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2469 | 2469 | | |
2470 | 2470 | | |
2471 | 2471 | | |
2472 | | - | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
2473 | 2478 | | |
2474 | | - | |
2475 | 2479 | | |
2476 | 2480 | | |
2477 | 2481 | | |
| |||
0 commit comments