mirror of
https://github.com/hyprwm/aquamarine.git
synced 2026-05-07 17:18:01 +02:00
Read-only mirror of https://github.com/hyprwm/aquamarine
drmGetFormatModifierName() can return NULL for DRM modifiers that libdrm has no human-readable name for (notably Apple Silicon / Asahi GPU vendor-specific modifiers). drmModifierToName() then constructs a std::string from the NULL pointer and aborts with `std::logic_error: basic_string: construction from null is not valid`, crashing any client that triggers a swapchain reconfigure against an Asahi GBM buffer. Mirror the existing NULL handling in fourccToName() (which already falls back to "unknown") to avoid the abort. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .github/workflows | ||
| data | ||
| docs | ||
| include/aquamarine | ||
| nix | ||
| protocols | ||
| src | ||
| tests | ||
| .clang-format | ||
| .clang-tidy | ||
| .gitignore | ||
| aquamarine.pc.in | ||
| CMakeLists.txt | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| README.md | ||
| VERSION | ||
Aquamarine
Aquamarine is a very light linux rendering backend library. It provides basic abstractions for an application to render on a Wayland session (in a window) or a native DRM session.
It is agnostic of the rendering API (Vulkan/OpenGL) and designed to be lightweight, performant, and minimal.
Aquamarine provides no bindings for other languages. It is C++-only.
Stability
Aquamarine depends on the ABI stability of the stdlib implementation of your compiler. Sover bumps will be done only for aquamarine ABI breaks, not stdlib.
Building
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf _NPROCESSORS_CONF`