mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-09-07 11:39:09 +01:00
gl_fence_manager: Minor optimization to signal querying
Per the spec, bufSize is the number of integers that will be written, in this case, 1. Also, the length argument is optional if the information of the number of elements written is not needed.
This commit is contained in:
parent
96d90be59f
commit
7f7df43da2
1 changed files with 1 additions and 2 deletions
|
@ -31,9 +31,8 @@ bool GLInnerFence::IsSignaled() const {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
ASSERT(sync_object.handle != 0);
|
ASSERT(sync_object.handle != 0);
|
||||||
GLsizei length;
|
|
||||||
GLint sync_status;
|
GLint sync_status;
|
||||||
glGetSynciv(sync_object.handle, GL_SYNC_STATUS, sizeof(GLint), &length, &sync_status);
|
glGetSynciv(sync_object.handle, GL_SYNC_STATUS, 1, nullptr, &sync_status);
|
||||||
return sync_status == GL_SIGNALED;
|
return sync_status == GL_SIGNALED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue