GlFunctions: Add driver info to error message

This commit is contained in:
Ancurio 2021-10-06 23:42:40 +02:00
parent 6d5a021f04
commit 45a967b3cd
1 changed files with 8 additions and 1 deletions

View File

@ -99,7 +99,14 @@ void initGLFunctions()
int glMajor = *ver - '0';
if (glMajor < 2)
throw EXC("At least OpenGL (ES) 2.0 is required");
{
throw Exception(Exception::MKXPError,
"At least OpenGL (ES) 2.0 is required\n\nDriver:\n%s\n%s\n%s\n%s",
gl.GetString(GL_VENDOR),
gl.GetString(GL_RENDERER),
gl.GetString(GL_VERSION),
gl.GetString(GL_SHADING_LANGUAGE_VERSION));
}
if (gles)
{