Fix vkDestroyDescriptorSetLayout being used instead of vkDestroyPipelineLayout

This commit is contained in:
Pierre Krieger 2016-03-11 14:53:07 +01:00
parent 45dd6d8156
commit 9eee5ae621

View File

@ -414,7 +414,7 @@ impl<P> Drop for PipelineLayout<P> {
fn drop(&mut self) { fn drop(&mut self) {
unsafe { unsafe {
let vk = self.device.pointers(); let vk = self.device.pointers();
vk.DestroyDescriptorSetLayout(self.device.internal_object(), self.layout, ptr::null()); vk.DestroyPipelineLayout(self.device.internal_object(), self.layout, ptr::null());
} }
} }
} }