buffer: add a NONE flag to eBufferCapability

ensure we dont cast out of range in caps(),
return (Aquamarine::eBufferCapability)0; in GBM.cpp
This commit is contained in:
Tom Englund 2024-07-11 12:22:26 +02:00
parent 965f429b29
commit fb1bafc717
1 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@
namespace Aquamarine { namespace Aquamarine {
enum eBufferCapability : uint32_t { enum eBufferCapability : uint32_t {
BUFFER_CAPABILITY_NONE = 0,
BUFFER_CAPABILITY_DATAPTR = (1 << 0), BUFFER_CAPABILITY_DATAPTR = (1 << 0),
}; };
@ -63,7 +64,7 @@ namespace Aquamarine {
Hyprutils::Math::Vector2D size; Hyprutils::Math::Vector2D size;
bool opaque = false; bool opaque = false;
CAttachmentManager attachments; CAttachmentManager attachments;
struct { struct {
Hyprutils::Signal::CSignal destroy; Hyprutils::Signal::CSignal destroy;