mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-26 06:04:15 +01:00
Avoid redundant GPU-dirty propagation for direct buffer recreation
This commit is contained in:
parent
4a3a40aa40
commit
a65aa28df2
@ -126,7 +126,7 @@ namespace skyline::gpu {
|
|||||||
copyBuffer(*newBuffer->guest, *srcBuffer->guest, newBuffer->backing->data(), srcBuffer->backing->data());
|
copyBuffer(*newBuffer->guest, *srcBuffer->guest, newBuffer->backing->data(), srcBuffer->backing->data());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (srcBuffer->directGpuWritesActive) {
|
if (srcBuffer->RefreshGpuWritesActiveDirect(false, {})) {
|
||||||
newBuffer->MarkGpuDirtyImpl();
|
newBuffer->MarkGpuDirtyImpl();
|
||||||
} else if (srcBuffer->directTrackedShadowActive) {
|
} else if (srcBuffer->directTrackedShadowActive) {
|
||||||
newBuffer->EnableTrackedShadowDirect();
|
newBuffer->EnableTrackedShadowDirect();
|
||||||
|
Loading…
Reference in New Issue
Block a user