aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/vulkan/vulkan_raii.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/vulkan/vulkan_raii.hpp')
-rw-r--r--include/vulkan/vulkan_raii.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/vulkan/vulkan_raii.hpp b/include/vulkan/vulkan_raii.hpp
index 9d96b6e..45f14bc 100644
--- a/include/vulkan/vulkan_raii.hpp
+++ b/include/vulkan/vulkan_raii.hpp
@@ -10189,15 +10189,15 @@ namespace VULKAN_HPP_NAMESPACE
, m_allocator( static_cast<const VULKAN_HPP_NAMESPACE::AllocationCallbacks *>( allocator ) )
, m_dispatcher( device.getDispatcher() )
{
- m_constructorSuccessCode =
+ VULKAN_HPP_NAMESPACE::Result result =
static_cast<VULKAN_HPP_NAMESPACE::Result>( getDispatcher()->vkCreateShadersEXT( static_cast<VkDevice>( *device ),
1,
reinterpret_cast<const VkShaderCreateInfoEXT *>( &createInfo ),
reinterpret_cast<const VkAllocationCallbacks *>( m_allocator ),
reinterpret_cast<VkShaderEXT *>( &m_shader ) ) );
- if ( m_constructorSuccessCode != VULKAN_HPP_NAMESPACE::Result::eSuccess )
+ if ( result != VULKAN_HPP_NAMESPACE::Result::eSuccess )
{
- throwResultException( m_constructorSuccessCode, "vkCreateShadersEXT" );
+ throwResultException( result, "vkCreateShadersEXT" );
}
}