# gpui_windows: Clear render target before compositing COLR emoji \(\#63225\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/7040aa56693ba7e85241180d031080ca79b725f8)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 7040aa56693ba7e85241180d031080ca79b725f8

Requested commit: 7040aa56693ba7e85241180d031080ca79b725f8

Commit: 7040aa56693ba7e85241180d031080ca79b725f8

Tree: 70908cb2e2b1e9722c16db82829786f92e85a19d

Author: Ali

Committer: GitHub

## Message

```
gpui_windows: Clear render target before compositing COLR emoji  (#63225)

… layers

# Objective

olor emoji (COLR glyphs) are rasterized on the GPU by compositing each
glyph layer into a D3D11 render target that is created with
`pInitialData: None` and, until now, never cleared. The texture contents
are undefined: texels not covered by any layer quad retained garbage
(typically leftovers from previous rasterizations via the DXGI
allocation pool).

## Solution

- Clear the render target with `[0, 0, 0, 0]` (premultiplied
transparent) immediately after binding it and before drawing the layers.

## Testing

add test to test this specifically 


## Showcase

before : 
<img width="1634" height="754" alt="ezgif-1a339c7dea79f905"
src="https://github.com/user-attachments/assets/6e282c46-d2a4-4043-9c1c-7f4ee9232fcc"
/>


after : 

<img width="1677" height="690" alt="Screenshot 2026-08-26 015248"
src="https://github.com/user-attachments/assets/c922909e-c70b-49f0-88fd-5a0c7cbe574b"
/>

---

Release Notes:

- Windows: Fixed artifacts around color emoji glyphs
```

## Parents

- [d4cd310edb56315d81a3eaee9032f0c8b2f8d5c5](https://git.cafe/gitcafe/zed/commit/d4cd310edb56315d81a3eaee9032f0c8b2f8d5c5?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/7040aa56693ba7e85241180d031080ca79b725f8?format=markdown)
