From fd96664b2a67d1c7248639aff8f30e043ac07490 Mon Sep 17 00:00:00 2001 From: Nicolas Caramelli Date: Fri, 27 Nov 2020 08:52:17 +0100 Subject: Check the definition instead of the extension to which it belongs Signed-off-by: Nicolas Caramelli --- src/libutil/error.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libutil/error.c b/src/libutil/error.c index d3b2666..1df9a06 100644 --- a/src/libutil/error.c +++ b/src/libutil/error.c @@ -48,8 +48,10 @@ static const struct token_string Errors[] = { { GL_STACK_OVERFLOW, "stack overflow" }, { GL_STACK_UNDERFLOW, "stack underflow" }, { GL_OUT_OF_MEMORY, "out of memory" }, +#ifdef GL_TABLE_TOO_LARGE { GL_TABLE_TOO_LARGE, "table too large" }, -#ifdef GL_EXT_framebuffer_object +#endif +#ifdef GL_INVALID_FRAMEBUFFER_OPERATION_EXT { GL_INVALID_FRAMEBUFFER_OPERATION_EXT, "invalid framebuffer operation" }, #endif /* GLU */ -- cgit v1.2.1