Merge pull request #1317 from ylz-at/patch-1

Fix code snippet in error handling example
This commit is contained in:
Andreas Süßenbach 2022-06-07 17:40:11 +02:00 committed by GitHub
commit 426c57a045
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?