Skip to content

legacygl: preserve separate blending state - #36

Open
tritao wants to merge 2 commits into
stack/legacygl-boundary-rewritefrom
stack/legacy-blending
Open

legacygl: preserve separate blending state#36
tritao wants to merge 2 commits into
stack/legacygl-boundary-rewritefrom
stack/legacy-blending

Conversation

@tritao

@tritao tritao commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

Preserve separate RGB and alpha blend factors in the LegacyGL renderer.

  • Track whether separate blending was explicitly requested.
  • Preserve separate source and destination alpha factors through lazy-element state and caches.
  • Select `glBlendFuncSeparate` when separate alpha factors are active.
  • Correctly distinguish ordinary blending from valid separate `ZERO/ZERO` alpha factors.
  • Add focused coverage for separate alpha blending and exact GL blend-factor state.

This is a LegacyGL compatibility fix and does not affect the retained renderer architecture.

Stack

Layer 8/18, based on PR #41.

@tritao tritao changed the title stack/legacy blending legacygl: preserve separate blending state Aug 9, 2026
@tritao
tritao force-pushed the stack/legacy-blending branch from d4ac929 to f21402d Compare August 9, 2026 12:02
@tritao
tritao changed the base branch from stack/compatibility-boundary to stack/legacygl-boundary August 9, 2026 12:03
@tritao
tritao force-pushed the stack/legacy-blending branch from f21402d to 37207d2 Compare August 9, 2026 12:07
@tritao
tritao force-pushed the stack/legacy-blending branch from 37207d2 to 903217f Compare August 9, 2026 12:13
@tritao
tritao force-pushed the stack/legacy-blending branch 2 times, most recently from dc7e534 to 98ae89f Compare August 9, 2026 12:37
@tritao
tritao force-pushed the stack/legacy-blending branch from 98ae89f to 7cd8f96 Compare August 9, 2026 12:39
@tritao
tritao force-pushed the stack/legacy-blending branch from 7cd8f96 to 209f091 Compare August 9, 2026 12:55
@tritao
tritao marked this pull request as ready for review August 9, 2026 13:09
@tritao
tritao force-pushed the stack/legacy-blending branch from 209f091 to 72393dc Compare August 9, 2026 13:13
@tritao
tritao force-pushed the stack/legacy-blending branch from 72393dc to 89e29c1 Compare August 9, 2026 14:55
@tritao
tritao force-pushed the stack/legacy-blending branch 3 times, most recently from e9c6366 to 710967d Compare August 9, 2026 18:22
@tritao
tritao force-pushed the stack/legacy-blending branch from 710967d to 3c04299 Compare August 9, 2026 18:48
@tritao
tritao force-pushed the stack/legacy-blending branch from 3c04299 to 8d4883b Compare August 9, 2026 18:51
@tritao
tritao force-pushed the stack/legacy-blending branch from 2d8d1b9 to dee2172 Compare August 10, 2026 11:57
@tritao
tritao force-pushed the stack/legacy-blending branch from dee2172 to 884a430 Compare August 10, 2026 13:29
@tritao
tritao force-pushed the stack/legacy-blending branch 2 times, most recently from 2f3e09b to df1ea59 Compare August 10, 2026 14:16
@tritao
tritao force-pushed the stack/legacy-blending branch 2 times, most recently from 407611a to 1ec199c Compare August 11, 2026 10:50
@tritao
tritao force-pushed the stack/legacy-blending branch 2 times, most recently from ca94f7b to b69fc8d Compare August 11, 2026 14:05
@tritao
tritao force-pushed the stack/legacy-blending branch from b69fc8d to 569033e Compare August 15, 2026 23:32
@tritao
tritao force-pushed the stack/legacy-blending branch from 569033e to 414e4d8 Compare August 16, 2026 00:25
@tritao
tritao force-pushed the stack/legacy-blending branch from 414e4d8 to 9b48739 Compare August 17, 2026 15:52
@tritao
tritao force-pushed the stack/legacy-blending branch from 9b48739 to b29e183 Compare August 18, 2026 09:24
@tritao
tritao force-pushed the stack/legacy-blending branch from b29e183 to 11e17e3 Compare August 18, 2026 14:40
@tritao
tritao force-pushed the stack/legacy-blending branch from 11e17e3 to 544c59d Compare August 18, 2026 14:48
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