forked from Mirror/Ryujinx
Flush GL commands before inevitably waiting for a query result. (#1278)
This commit is contained in:
parent
d941f4c070
commit
5dab515c7a
1 changed files with 5 additions and 1 deletions
|
@ -1067,11 +1067,15 @@ namespace Ryujinx.Graphics.OpenGL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false; // The GPU will flush the queries to CPU and evaluate the condition there instead.
|
// The GPU will flush the queries to CPU and evaluate the condition there instead.
|
||||||
|
|
||||||
|
GL.Flush(); // The thread will be stalled manually flushing the counter, so flush GL commands now.
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool TryHostConditionalRendering(ICounterEvent value, ICounterEvent compare, bool isEqual)
|
public bool TryHostConditionalRendering(ICounterEvent value, ICounterEvent compare, bool isEqual)
|
||||||
{
|
{
|
||||||
|
GL.Flush(); // The GPU thread will be stalled manually flushing the counter, so flush GL commands now.
|
||||||
return false; // We don't currently have a way to compare two counters for conditional rendering.
|
return false; // We don't currently have a way to compare two counters for conditional rendering.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue