VulkanShader::Prepare - return false if vkCreateShaderModule failed.

This commit is contained in:
Dr. Chat 2016-03-25 16:37:24 -05:00
parent 2bb40c122d
commit a5a31cf123
1 changed files with 3 additions and 3 deletions

View File

@ -44,11 +44,11 @@ bool VulkanShader::Prepare() {
shader_info.codeSize = translated_binary_.size();
shader_info.pCode =
reinterpret_cast<const uint32_t*>(translated_binary_.data());
auto err =
auto status =
vkCreateShaderModule(device_, &shader_info, nullptr, &shader_module_);
CheckResult(err, "vkCreateShaderModule");
CheckResult(status, "vkCreateShaderModule");
return true;
return status == VK_SUCCESS;
}
} // namespace vulkan