Fix null check

This commit is contained in:
hodasemi 2023-12-04 14:13:09 +01:00
parent c54b4c1c24
commit ae8eafcc10

View file

@ -75,7 +75,7 @@ impl VkPresentInfoKHR {
}
pub fn results(&mut self) -> &mut [VkResult] {
if self.swapchainCount == 0 || self.pResults != ptr::null_mut() {
if self.swapchainCount == 0 || self.pResults == ptr::null_mut() {
&mut []
} else {
raw_to_slice_mut(self.pResults, self.swapchainCount)