Index: src/gpu/vk/GrVkProgram.cpp |
diff --git a/src/gpu/vk/GrVkProgram.cpp b/src/gpu/vk/GrVkProgram.cpp |
index 00f01b70c80b2aeeb7612e6e493bf76f72868113..0e1e201c2b5bd6405f61dddbe436f6e0f7df5bde 100644 |
--- a/src/gpu/vk/GrVkProgram.cpp |
+++ b/src/gpu/vk/GrVkProgram.cpp |
@@ -100,18 +100,18 @@ void GrVkProgram::freeGPUResources(const GrVkGpu* gpu) { |
GR_VK_CALL(gpu->vkInterface(), DestroyPipelineLayout(gpu->device(), |
fPipelineLayout, |
nullptr)); |
- fPipelineLayout = nullptr; |
+ fPipelineLayout = VK_NULL_HANDLE; |
} |
if (fDSLayout[0]) { |
GR_VK_CALL(gpu->vkInterface(), DestroyDescriptorSetLayout(gpu->device(), fDSLayout[0], |
nullptr)); |
- fDSLayout[0] = nullptr; |
+ fDSLayout[0] = VK_NULL_HANDLE; |
} |
if (fDSLayout[1]) { |
GR_VK_CALL(gpu->vkInterface(), DestroyDescriptorSetLayout(gpu->device(), fDSLayout[1], |
nullptr)); |
- fDSLayout[1] = nullptr; |
+ fDSLayout[1] = VK_NULL_HANDLE; |
} |
if (fVertexUniformBuffer) { |
@@ -129,9 +129,9 @@ void GrVkProgram::abandonGPUResources() { |
fPipeline = nullptr; |
fDescriptorPool->unrefAndAbandon(); |
fDescriptorPool = nullptr; |
- fPipelineLayout = nullptr; |
- fDSLayout[0] = nullptr; |
- fDSLayout[1] = nullptr; |
+ fPipelineLayout = VK_NULL_HANDLE; |
+ fDSLayout[0] = VK_NULL_HANDLE; |
+ fDSLayout[1] = VK_NULL_HANDLE; |
fVertexUniformBuffer->abandon(); |
fFragmentUniformBuffer->abandon(); |