[PR #12705] AtlasEngine: Fix ClearType being always enabled #29197

Open
opened 2026-01-31 09:33:26 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/12705

State: closed
Merged: Yes


HLSL uses 32-bit booleans, while C++ uses 8-bit ones aligned by 32-bit.
This meant that the shader was accessing uninitialized memory
forcing ClearType blending to be randomly enabled.

This regressed in commit 5964060.

PR Checklist

  • I work here
  • Tests added/passed

Validation Steps Performed

  • ClearType blending works
  • Enabling transparent backgrounds forces grayscale blending
**Original Pull Request:** https://github.com/microsoft/terminal/pull/12705 **State:** closed **Merged:** Yes --- HLSL uses 32-bit booleans, while C++ uses 8-bit ones aligned by 32-bit. This meant that the shader was accessing uninitialized memory forcing ClearType blending to be randomly enabled. This regressed in commit 5964060. ## PR Checklist * [x] I work here * [x] Tests added/passed ## Validation Steps Performed * ClearType blending works ✅ * Enabling transparent backgrounds forces grayscale blending ✅
claunia added the pull-request label 2026-01-31 09:33:26 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#29197