Fix null check
This commit is contained in:
parent
c54b4c1c24
commit
ae8eafcc10
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ impl VkPresentInfoKHR {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn results(&mut self) -> &mut [VkResult] {
|
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 []
|
&mut []
|
||||||
} else {
|
} else {
|
||||||
raw_to_slice_mut(self.pResults, self.swapchainCount)
|
raw_to_slice_mut(self.pResults, self.swapchainCount)
|
||||||
|
|
Loading…
Reference in a new issue