mirror of
https://gitlab.freedesktop.org/mesa/vulkan-wsi-layer.git
synced 2026-05-05 13:28:00 +02:00
Merge 'Add stdexcept in custom_allocator.hpp' into 'main'
See merge request mesa/vulkan-wsi-layer!122
This commit is contained in:
commit
0f5f241337
1 changed files with 3 additions and 2 deletions
|
|
@ -28,6 +28,7 @@
|
|||
#include <string>
|
||||
#include <cassert>
|
||||
#include <memory>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <vulkan/vulkan.h>
|
||||
|
||||
|
|
@ -383,11 +384,11 @@ public:
|
|||
base::reserve(size);
|
||||
return true;
|
||||
}
|
||||
catch (std::bad_alloc &e)
|
||||
catch (const std::bad_alloc &)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
catch (const std::length_error &e)
|
||||
catch (const std::length_error &)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue