mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-01-15 21:20:45 +01:00
rsx/zcull: Stop any running when the clear command is processed
This commit is contained in:
parent
c199a96dac
commit
86b559ab52
|
|
@ -260,9 +260,20 @@ namespace rsx
|
|||
return;
|
||||
}
|
||||
|
||||
// Discard any running queries. The results will never be read anyway.
|
||||
if (m_current_task && m_current_task->active)
|
||||
{
|
||||
discard_occlusion_query(m_current_task);
|
||||
free_query(m_current_task);
|
||||
m_current_task->active = false;
|
||||
|
||||
allocate_new_query(ptimer);
|
||||
begin_occlusion_query(m_current_task);
|
||||
}
|
||||
|
||||
if (!m_pending_writes.empty())
|
||||
{
|
||||
//Remove any dangling/unclaimed queries as the information is lost anyway
|
||||
// Remove any dangling/unclaimed queries as the information is lost anyway
|
||||
auto valid_size = m_pending_writes.size();
|
||||
for (auto It = m_pending_writes.rbegin(); It != m_pending_writes.rend(); ++It)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue