Merge pull request #285 from tomek-brcm/null-handle

Use  VK_NULL_HANDLE for null shader module.
This commit is contained in:
Sascha Willems 2017-02-16 17:49:21 +01:00 committed by GitHub
commit fa9f0df469
2 changed files with 2 additions and 2 deletions

View file

@ -205,7 +205,7 @@ VkPipelineShaderStageCreateInfo VulkanExampleBase::loadShader(std::string fileNa
shaderStage.module = vks::tools::loadShader(fileName.c_str(), device, stage);
#endif
shaderStage.pName = "main"; // todo : make param
assert(shaderStage.module != NULL);
assert(shaderStage.module != VK_NULL_HANDLE);
shaderModules.push_back(shaderStage.module);
return shaderStage;
}