From: Matt Turner Date: Mon, 3 Mar 2014 19:40:49 +0000 (-0800) Subject: Search for proper name of AMD_performance_monitor. X-Git-Url: https://git.cworth.org/git/fips/commitdiff/ab47b0f15d34ef4d447ea8042b9d6a963ff5b6d7?p=fips;a=commitdiff_plain;h=ab47b0f15d34ef4d447ea8042b9d6a963ff5b6d7 Search for proper name of AMD_performance_monitor. The GL 4.4 spec says: A unique name string of the form ”GL_ARB_name” or ”GL_KHR_name” is associated with each extension. so we need the "GL_" prefix to properly find the extension. --- diff --git a/context.c b/context.c index 6bc3e0a..3c58a60 100644 --- a/context.c +++ b/context.c @@ -51,7 +51,7 @@ context_create (fips_api_t api, void *system_context_id) fips_dispatch_init (api); - ctx->have_perfmon = check_extension ("AMD_performance_monitor"); + ctx->have_perfmon = check_extension ("GL_AMD_performance_monitor"); metrics_info_init (&ctx->metrics_info, ctx->have_perfmon); ctx->metrics = metrics_create (&ctx->metrics_info);