Index: src/gpu/vk/GrVkGpu.cpp |
diff --git a/src/gpu/vk/GrVkGpu.cpp b/src/gpu/vk/GrVkGpu.cpp |
index 71d3028850dea9d94ea8014ded8769ae7b4a3a7f..20062b763173dc5d716267d51ef2cb31bfc60ebe 100644 |
--- a/src/gpu/vk/GrVkGpu.cpp |
+++ b/src/gpu/vk/GrVkGpu.cpp |
@@ -82,7 +82,9 @@ GrGpu* GrVkGpu::Create(GrBackendContext backendContext, const GrContextOptions& |
GrVkGpu::GrVkGpu(GrContext* context, const GrContextOptions& options, |
const GrVkBackendContext* backendCtx) |
: INHERITED(context) |
+#ifdef ENABLE_VK_LAYERS |
, fVkInstance(backendCtx->fInstance) |
+#endif |
, fDevice(backendCtx->fDevice) |
, fQueue(backendCtx->fQueue) |
, fResourceProvider(this) { |