mesa: print Compatibility Profile in the version string

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Marek Olšák 2018-02-14 21:21:24 +01:00
parent d3a87537dd
commit 27a9f27310

View file

@ -128,7 +128,9 @@ create_version_string(struct gl_context *ctx, const char *prefix)
,
prefix,
ctx->Version / 10, ctx->Version % 10,
(ctx->API == API_OPENGL_CORE) ? " (Core Profile)" : ""
(ctx->API == API_OPENGL_CORE) ? " (Core Profile)" :
(ctx->API == API_OPENGL_COMPAT && ctx->Version >= 32) ?
" (Compatibility Profile)" : ""
);
}
}