diff options
author | Emil Velikov <emil.velikov@collabora.com> | 2016-06-22 14:48:48 +0100 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2016-07-22 17:19:17 +0100 |
commit | c7138f0634829745ec9a43d7b8771476f32383b9 (patch) | |
tree | afcf94c9fd1f7d1f09558023f52ca017407bde9e /tests/util | |
parent | e059f10dc0b3d9535b45553c065691ae978420e1 (diff) |
util/gl: remove '#if defined(GL_SYMBOL)' guards
Those symbols are part of the ABI/API and cannot change. Just define
them locally when needed.
v2: Drop the fall-back definitions (Ilia).
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'tests/util')
-rw-r--r-- | tests/util/piglit-util-gl.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c index 727a9012c..926a6b79c 100644 --- a/tests/util/piglit-util-gl.c +++ b/tests/util/piglit-util-gl.c @@ -163,16 +163,9 @@ const char* piglit_get_gl_error_name(GLenum error) CASE(GL_INVALID_VALUE) CASE(GL_NO_ERROR) CASE(GL_OUT_OF_MEMORY) - /* enums that are not available everywhere */ -#if defined(GL_STACK_OVERFLOW) CASE(GL_STACK_OVERFLOW) -#endif -#if defined(GL_STACK_UNDERFLOW) CASE(GL_STACK_UNDERFLOW) -#endif -#if defined(GL_INVALID_FRAMEBUFFER_OPERATION) CASE(GL_INVALID_FRAMEBUFFER_OPERATION) -#endif default: return "(unrecognized error)"; } |