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 767e031645
commit ea2076658a

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;