Index: src/gpu/vk/GrVkGpu.h |
diff --git a/src/gpu/vk/GrVkGpu.h b/src/gpu/vk/GrVkGpu.h |
index 13cbd0cbf08e8aabd731c781ea7afbc2ac7943f6..3f76fd241632bdd4905de4e791ba449e07290ba3 100644 |
--- a/src/gpu/vk/GrVkGpu.h |
+++ b/src/gpu/vk/GrVkGpu.h |
@@ -204,7 +204,9 @@ private: |
// These Vulkan objects are provided by the client, and also stored in fBackendContext. |
// They're copied here for convenient access. |
+#ifdef ENABLE_VK_LAYERS |
VkInstance fVkInstance; |
+#endif |
VkDevice fDevice; |
VkQueue fQueue; // Must be Graphics queue |