Skip to content

Commit

Permalink
buffer: add a NONE flag to eBufferCapability (#11)
Browse files Browse the repository at this point in the history
ensure we dont cast out of range in caps(),
return (Aquamarine::eBufferCapability)0; in GBM.cpp
  • Loading branch information
gulafaran committed Jul 11, 2024
1 parent 1ae9ead commit c3bfe3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/aquamarine/buffer/Buffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

namespace Aquamarine {
enum eBufferCapability : uint32_t {
BUFFER_CAPABILITY_NONE = 0,
BUFFER_CAPABILITY_DATAPTR = (1 << 0),
};

Expand Down Expand Up @@ -63,7 +64,7 @@ namespace Aquamarine {
Hyprutils::Math::Vector2D size;
bool opaque = false;

CAttachmentManager attachments;
CAttachmentManager attachments;

struct {
Hyprutils::Signal::CSignal destroy;
Expand Down

0 comments on commit c3bfe3d

Please sign in to comment.