Commit 50697f7
ogc: avoid copying to XFB when clearing with a render target
If we are rendering to a texture, we must avoid writing to the XFB,
because the image we are rendering might not be intended to be shown
as-is on the XFB.
So, when clearing the display, pay attention to whether we are rendering
to a texture and, in that case, do not copy the EFB to the XFB. Instead,
copy it to the texture itself (not that we care a lot about this copy,
since the texture will anyway be overwitten once it stops being a render
target; but we do care about this operation causing a full clearing of
the EFB).1 parent 09fb6f8 commit 50697f7
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
387 | | - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
388 | 392 | | |
389 | 393 | | |
390 | 394 | | |
| |||
0 commit comments