glewGetErrorString for GLEW_ERROR_NO_GLX_DISPLAY (added in 2016)

This commit is contained in:
Nigel Stewart 2021-07-17 13:52:25 +10:00
parent 80e061f85d
commit 9eee75b61c

View File

@ -8,6 +8,7 @@ const GLubyte * GLEWAPIENTRY glewGetErrorString (GLenum error)
(const GLubyte*)"Missing GL version", (const GLubyte*)"Missing GL version",
(const GLubyte*)"GL 1.1 and up are not supported", (const GLubyte*)"GL 1.1 and up are not supported",
(const GLubyte*)"GLX 1.2 and up are not supported", (const GLubyte*)"GLX 1.2 and up are not supported",
(const GLubyte*)"No GLX display",
(const GLubyte*)"Unknown error" (const GLubyte*)"Unknown error"
}; };
const size_t max_error = sizeof(_glewErrorString)/sizeof(*_glewErrorString) - 1; const size_t max_error = sizeof(_glewErrorString)/sizeof(*_glewErrorString) - 1;