]> git.cworth.org Git - fips/commitdiff
Search for proper name of AMD_performance_monitor.
authorMatt Turner <mattst88@gmail.com>
Mon, 3 Mar 2014 19:40:49 +0000 (11:40 -0800)
committerCarl Worth <cworth@cworth.org>
Thu, 20 Mar 2014 14:52:21 +0000 (07:52 -0700)
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.

context.c

index 6bc3e0af7365e0ec104073a146ba5b2e6b78d5fb..3c58a60e6b2fbd76ca7a13dfaa3248f67fd43828 100644 (file)
--- 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);