End empty gl queries before returning them to the pool. (#1806)
This commit is contained in:
parent
8a6607540e
commit
06057a99a6
3 changed files with 11 additions and 7 deletions
|
@ -107,13 +107,14 @@ namespace Ryujinx.Graphics.OpenGL.Queries
|
|||
|
||||
if (draws > 0)
|
||||
{
|
||||
_current.Complete();
|
||||
_current.Complete(true);
|
||||
_events.Enqueue(_current);
|
||||
|
||||
_current.OnResult += resultHandler;
|
||||
}
|
||||
else
|
||||
{
|
||||
_current.Complete(false);
|
||||
_current.Dispose();
|
||||
resultHandler(_current, 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue