summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar ameerj2022-02-27 17:57:33 -0500
committerGravatar ameerj2022-02-27 17:57:33 -0500
commit7f7df43da2cedb40c57bcbcbbe24d076d832666f (patch)
tree724caeb237105af3d29675f27565716f957f0e8f
parentMerge pull request #7955 from bunnei/update-dynarmic (diff)
downloadyuzu-7f7df43da2cedb40c57bcbcbbe24d076d832666f.tar.gz
yuzu-7f7df43da2cedb40c57bcbcbbe24d076d832666f.tar.xz
yuzu-7f7df43da2cedb40c57bcbcbbe24d076d832666f.zip
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.
-rw-r--r--src/video_core/renderer_opengl/gl_fence_manager.cpp3
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 {
31 return true; 31 return true;
32 } 32 }
33 ASSERT(sync_object.handle != 0); 33 ASSERT(sync_object.handle != 0);
34 GLsizei length;
35 GLint sync_status; 34 GLint sync_status;
36 glGetSynciv(sync_object.handle, GL_SYNC_STATUS, sizeof(GLint), &length, &sync_status); 35 glGetSynciv(sync_object.handle, GL_SYNC_STATUS, 1, nullptr, &sync_status);
37 return sync_status == GL_SIGNALED; 36 return sync_status == GL_SIGNALED;
38} 37}
39 38