docs(readme): fix code snippet in error handling example

This commit is contained in:
Jinesi Yelizati 2022-06-07 17:05:52 +08:00 committed by GitHub
parent fca463f6da
commit e1531c432a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -347,7 +347,7 @@ if (shaderResult1.result != VK_SUCCESS)
vk::Result result;
vk::ShaderModule shaderModule2;
std::tie(result, shaderModule2) = device.createShaderModule({...} /* createInfo temporary */);
if (shaderResult2.result != VK_SUCCESS)
if (result != VK_SUCCESS)
{
handle error code;
cleanup?