We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34e2c2c commit 4b59bf2Copy full SHA for 4b59bf2
pathfinder/gpu/gl/fence.cpp
@@ -9,14 +9,8 @@ FenceGl::~FenceGl() {
9
}
10
11
void FenceGl::wait() const {
12
- // Wait indefinitely
13
- while (true) {
14
- GLenum wait_result = glClientWaitSync(fence, GL_SYNC_FLUSH_COMMANDS_BIT, GL_TIMEOUT_IGNORED);
15
-
16
- if (wait_result == GL_ALREADY_SIGNALED || wait_result == GL_CONDITION_SATISFIED) {
17
- return;
18
- }
19
+ GLenum wait_result = glClientWaitSync(fence, GL_SYNC_FLUSH_COMMANDS_BIT, GL_TIMEOUT_IGNORED);
+ assert(wait_result == GL_ALREADY_SIGNALED || wait_result == GL_CONDITION_SATISFIED);
20
21
22
} // namespace Pathfinder
0 commit comments