From: Brian Paul Date: Tue, 22 Sep 2009 17:02:04 +0000 (-0600) Subject: progs/perf: added PerfExtensionSupported() helper X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cfb0f2489dabd07e905969484edb9317395b2f6a;p=mesa.git progs/perf: added PerfExtensionSupported() helper --- diff --git a/progs/perf/glmain.c b/progs/perf/glmain.c index 8b41b8ee829..a167be042ef 100644 --- a/progs/perf/glmain.c +++ b/progs/perf/glmain.c @@ -165,6 +165,13 @@ PerfReshapeWindow( unsigned w, unsigned h ) } +GLboolean +PerfExtensionSupported(const char *ext) +{ + return glutExtensionSupported(ext); +} + + static void Idle(void) { diff --git a/progs/perf/glmain.h b/progs/perf/glmain.h index ccfd289880d..d9bcd5f4e21 100644 --- a/progs/perf/glmain.h +++ b/progs/perf/glmain.h @@ -49,6 +49,9 @@ PerfShaderProgram(const char *vertShader, const char *fragShader); extern int PerfReshapeWindow( unsigned w, unsigned h ); +extern GLboolean +PerfExtensionSupported(const char *ext); + /** Test programs must implement these functions **/