Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ACGL
acgl
Commits
fe00ab5c
Commit
fe00ab5c
authored
Apr 14, 2014
by
Philip Trettner
Browse files
Fixed infinite loop if glError persists.
parent
157d4ded
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ACGL/OpenGL/Debug.cc
View file @
fe00ab5c
...
...
@@ -79,7 +79,8 @@ void APIENTRY ACGL_KHR_default_debug_callback( GLenum _source, GLenum _type, GLu
// delete all errors to not create another error log for the same problem:
while
(
glGetError
()
!=
GL_NO_ERROR
)
{}
int
tries
(
100
);
while
(
glGetError
()
!=
GL_NO_ERROR
&&
--
tries
>
0
)
{}
}
}
// OpenGL
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment