Skip to content

Link create_text_sprite's two-pass workaround to pyglet issue #1509 - #2929

Merged
pvcraven merged 1 commit into
developmentfrom
docs/link-pyglet-1509
Oct 7, 2026
Merged

pvcraven merged 1 commit into
developmentfrom
docs/link-pyglet-1509

Conversation

@pvcraven

@pvcraven pvcraven commented Oct 6, 2026

Copy link
Copy Markdown
Member

Summary

A comment-only change. create_text_sprite draws its text twice, over black and over white (#2923), to work around pyglet blending text's alpha like its color. I've reported that upstream as pyglet/pyglet#1509.

The comment now links that issue, and notes that once pyglet blends alpha separately, one pass over transparent black would do, with the alpha divided out. That makes the workaround easy to find and remove later, like the italic workaround's link to pyglet/pyglet#1508.

Text sprite tests pass, and ruff is clean. No changelog entry, since nothing changes for users.

🤖 Generated with Claude Code

pyglet's text groups blend alpha like color, which is why
create_text_sprite draws the text over black and over white. Link the
pyglet issue and note what can change once it's fixed, like the italic
workaround's link to #1508.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pvcraven
pvcraven merged commit 5f32ec4 into development Oct 7, 2026
7 checks passed
@pvcraven
pvcraven deleted the docs/link-pyglet-1509 branch October 7, 2026 16:45
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