diff options
Diffstat (limited to 'src/mesa/main/version.c')
-rw-r--r-- | src/mesa/main/version.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c index 9d23c577bd1..a39b6806501 100644 --- a/src/mesa/main/version.c +++ b/src/mesa/main/version.c @@ -122,9 +122,9 @@ _mesa_compute_version(GLcontext *ctx) compute_version(ctx, &ctx->VersionMajor, &ctx->VersionMinor); - ctx->VersionString = (char *) _mesa_malloc(max); + ctx->VersionString = (char *) malloc(max); if (ctx->VersionString) { _mesa_snprintf(ctx->VersionString, max, "%u.%u Mesa " MESA_VERSION_STRING, - ctx->VersionMajor, ctx->VersionMinor); + ctx->VersionMajor, ctx->VersionMinor); } } |