Skip to content

Declare sRGB output on window surfaces - #38

Merged
corepunch merged 3 commits into
mainfrom
feature/srgb-window-surface-colorspace
Oct 3, 2026
Merged

corepunch merged 3 commits into
mainfrom
feature/srgb-window-surface-colorspace

Conversation

@corepunch

Copy link
Copy Markdown
Owner

Summary

  • Declare sRGB output color space on macOS and iOS drawable surfaces.
  • Request sRGB EGL surfaces on X11 and Wayland, with logged fallback to the platform default when unavailable.
  • Fix Wayland surface creation to validate the created EGL surface rather than the native window handle.

Validation

  • make -C platform OUTDIR=/tmp/platform-build on macOS.

corepunch and others added 2 commits September 24, 2026 16:34
The symbol test assumed every AX_API prototype put the function name on
the next line. The iOS one-line declarations made it emit
assert(AX_API != NULL), which failed the Linux, macOS, Windows, and X11
checks. Parse the declarator before the opening parenthesis, and skip
AX_PLATFORM_IOS prototypes unless the build is iOS.

Also match the macOS sRGB color-space call to the surrounding indent and
flush the X11 fallback error before retrying surface creation.
@corepunch
corepunch merged commit 4f5c3ba into main Oct 3, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant