Browse Source
Merge pull request #7963 from ameerj/gl_fence_nit
gl_fence_manager: Minor optimization to signal querying
pull/15/merge
Mai M
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
src/video_core/renderer_opengl/gl_fence_manager.cpp
|
|
|
@ -31,9 +31,8 @@ bool GLInnerFence::IsSignaled() const { |
|
|
|
return true; |
|
|
|
} |
|
|
|
ASSERT(sync_object.handle != 0); |
|
|
|
GLsizei length; |
|
|
|
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; |
|
|
|
} |
|
|
|
|
|
|
|
|