diff options
author | Mai M <mathew1800@gmail.com> | 2022-03-01 01:53:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-01 01:53:24 +0100 |
commit | 96dbb9233a7a1dec49aa2c9f08f62699f02c3b52 (patch) | |
tree | 9cfb0414672cb630d624e67d3ae1f3314456f83d | |
parent | Merge pull request #7966 from merryhime/cmake-ffmpeg-endif (diff) | |
parent | gl_fence_manager: Minor optimization to signal querying (diff) | |
download | yuzu-96dbb9233a7a1dec49aa2c9f08f62699f02c3b52.tar yuzu-96dbb9233a7a1dec49aa2c9f08f62699f02c3b52.tar.gz yuzu-96dbb9233a7a1dec49aa2c9f08f62699f02c3b52.tar.bz2 yuzu-96dbb9233a7a1dec49aa2c9f08f62699f02c3b52.tar.lz yuzu-96dbb9233a7a1dec49aa2c9f08f62699f02c3b52.tar.xz yuzu-96dbb9233a7a1dec49aa2c9f08f62699f02c3b52.tar.zst yuzu-96dbb9233a7a1dec49aa2c9f08f62699f02c3b52.zip |
-rw-r--r-- | src/video_core/renderer_opengl/gl_fence_manager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_fence_manager.cpp b/src/video_core/renderer_opengl/gl_fence_manager.cpp index 151290101..293ad7d59 100644 --- a/src/video_core/renderer_opengl/gl_fence_manager.cpp +++ b/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; } |