[Mesa-dev] [PATCH v3 2/3] main/version: add "(Core Profile) to version string for core profiles

Jordan Justen jordan.l.justen at intel.com
Tue Sep 4 21:00:58 PDT 2012


Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
 src/mesa/main/version.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c
index 55bcb35..0d27606 100644
--- a/src/mesa/main/version.c
+++ b/src/mesa/main/version.c
@@ -65,13 +65,15 @@ create_version_string(struct gl_context *ctx, const char *prefix)
    ctx->VersionString = (char *) malloc(max);
    if (ctx->VersionString) {
       _mesa_snprintf(ctx->VersionString, max,
-		     "%s%u.%u Mesa " MESA_VERSION_STRING
+		     "%s%u.%u%s Mesa " MESA_VERSION_STRING
 #ifdef MESA_GIT_SHA1
 		     " (" MESA_GIT_SHA1 ")"
 #endif
 		     ,
 		     prefix,
-		     ctx->Version / 10, ctx->Version % 10);
+		     ctx->Version / 10, ctx->Version % 10,
+		     (ctx->API == API_OPENGL_CORE) ? " (Core Profile)" : ""
+		     );
    }
 }
 
-- 
1.7.9.5



More information about the mesa-dev mailing list