mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
gpu2: ignore black surface
This commit is contained in:
parent
624f4327f8
commit
f6cc90727e
1 changed files with 7 additions and 0 deletions
|
|
@ -251,6 +251,13 @@ bool Device::flip(std::int64_t pid, int bufferIndex, std::uint64_t arg,
|
|||
return false;
|
||||
}
|
||||
|
||||
if (bufferIndex < 0) {
|
||||
bridge->flipBuffer[process.vmId] = bufferIndex;
|
||||
bridge->flipArg[process.vmId] = arg;
|
||||
bridge->flipCount[process.vmId] = bridge->flipCount[process.vmId] + 1;
|
||||
return false;
|
||||
}
|
||||
|
||||
auto &buffer = process.buffers[bufferIndex];
|
||||
auto &bufferAttr = process.bufferAttributes[buffer.attrId];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue