mesa: print Compatibility Profile in the version string
authorMarek Olšák <marek.olsak@amd.com>
Wed, 14 Feb 2018 20:21:24 +0000 (21:21 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 30 May 2018 00:13:24 +0000 (20:13 -0400)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/main/version.c

index 3f3dff0bde37c1bc697f3535ce6113c0a9c08d0e..1bdccf4a1df8e2f04635c9db1c12e1af5b3477d6 100644 (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)" : ""
                     );
    }
 }