Skip to content

Commit

Permalink
* Fix use of using enum (c++20 feature but clang version used on gith…
Browse files Browse the repository at this point in the history
…ub actions runners is old and so i cant use 3 year old features lmao)
  • Loading branch information
harrand committed May 19, 2023
1 parent 13b8c34 commit e810d34
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/tz/gl/impl/vulkan/device2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,21 +237,20 @@ namespace tz::gl
});
switch(this->recent_acquire->type)
{
using enum vk2::Swapchain::ImageAcquisitionResult::AcquisitionResultType;
case AcquireSuccess:
case vk2::Swapchain::ImageAcquisitionResult::AcquisitionResultType::AcquireSuccess:

break;
case Suboptimal:
case vk2::Swapchain::ImageAcquisitionResult::AcquisitionResultType::Suboptimal:

break;
case ErrorOutOfDate:
case vk2::Swapchain::ImageAcquisitionResult::AcquisitionResultType::ErrorOutOfDate:
this->vk_notify_resize();
return this->acquire_image(signal_fence);
break;
case ErrorSurfaceLost:
case vk2::Swapchain::ImageAcquisitionResult::AcquisitionResultType::ErrorSurfaceLost:
tz::error("Failed to acquire swapchain image because surface was lost. Please submit a bug report.");
break;
case ErrorUnknown:
case vk2::Swapchain::ImageAcquisitionResult::AcquisitionResultType::ErrorUnknown:
tz::error("Failed to acquire swapchain image, but couldn't determine why. Please submit a bug report.");
break;
default: tz::error(); break;
Expand Down

0 comments on commit e810d34

Please sign in to comment.