aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2016-04-01 08:47:35 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-01 08:47:35 -0700
commitb60c337d1a65bae3426a8883a0e84dbff6ab08ad (patch)
tree3ba8b2d9537afb88c1c2f9a2cd60469eb939b7de
parentc770b75c6997bd121e670d3bcd25bc728e0c6635 (diff)
Initialize variable to appease compiler warning
-rw-r--r--src/gpu/vk/GrVkPipelineStateBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/vk/GrVkPipelineStateBuilder.cpp b/src/gpu/vk/GrVkPipelineStateBuilder.cpp
index 00e81d4b9c..6d46ea91b5 100644
--- a/src/gpu/vk/GrVkPipelineStateBuilder.cpp
+++ b/src/gpu/vk/GrVkPipelineStateBuilder.cpp
@@ -99,7 +99,7 @@ bool GrVkPipelineStateBuilder::CreateVkShaderModule(const GrVkGpu* gpu,
moduleCreateInfo.pNext = nullptr;
moduleCreateInfo.flags = 0;
- shaderc_compilation_result_t result;
+ shaderc_compilation_result_t result = nullptr;
if (gpu->vkCaps().canUseGLSLForShaderModule()) {
moduleCreateInfo.codeSize = strlen(shaderString.c_str());