diff options
author | egdaniel <egdaniel@google.com> | 2016-04-01 08:47:35 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-01 08:47:35 -0700 |
commit | b60c337d1a65bae3426a8883a0e84dbff6ab08ad (patch) | |
tree | 3ba8b2d9537afb88c1c2f9a2cd60469eb939b7de | |
parent | c770b75c6997bd121e670d3bcd25bc728e0c6635 (diff) |
Initialize variable to appease compiler warning
TBR=bsalomon@google.com
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1854773002
Review URL: https://codereview.chromium.org/1854773002
-rw-r--r-- | src/gpu/vk/GrVkPipelineStateBuilder.cpp | 2 |
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()); |