Vulkan/Pipeline: Fix last code not being set
Former-commit-id: 3d997b2a47c3610c8b53059fd690aa9eb5b84785 [formerly e4c9b0aaa84427807e6c35d4bad4d88e68f1a019] Former-commit-id: 2b7c0c879364ef8a774fa0313b34ad30ca2e3f3a
This commit is contained in:
parent
9d85ba6b1c
commit
a3f3e61501
|
|
@ -65,6 +65,7 @@ namespace Nz
|
|||
inline bool Pipeline::Create(const DeviceHandle& device, VkResult result, const VkAllocationCallbacks* allocator)
|
||||
{
|
||||
m_device = device;
|
||||
m_lastErrorCode = result;
|
||||
if (m_lastErrorCode != VkResult::VK_SUCCESS)
|
||||
{
|
||||
NazaraError("Failed to create Vulkan object");
|
||||
|
|
|
|||
Loading…
Reference in New Issue