Mesa (mesa_7_7_branch): progs/perf: added check for GL_ARB_framebuffer_object
Brian Paul
brianp at kemper.freedesktop.org
Mon Dec 21 20:49:37 UTC 2009
Module: Mesa
Branch: mesa_7_7_branch
Commit: fdae39c28908801709d081fbb7319e70d0ba89ba
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fdae39c28908801709d081fbb7319e70d0ba89ba
Author: Brian Paul <brianp at vmware.com>
Date: Mon Dec 21 13:48:58 2009 -0700
progs/perf: added check for GL_ARB_framebuffer_object
---
progs/perf/genmipmap.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/progs/perf/genmipmap.c b/progs/perf/genmipmap.c
index 4b7d6ad..20e2fa3 100644
--- a/progs/perf/genmipmap.c
+++ b/progs/perf/genmipmap.c
@@ -27,6 +27,7 @@
*/
#include <string.h>
+#include <stdio.h>
#include "glmain.h"
#include "common.h"
@@ -53,6 +54,11 @@ static const struct vertex vertices[1] = {
void
PerfInit(void)
{
+ if (!PerfExtensionSupported("GL_ARB_framebuffer_object")) {
+ printf("Sorry, this test requires GL_ARB_framebuffer_object\n");
+ exit(1);
+ }
+
/* setup VBO w/ vertex data */
glGenBuffersARB(1, &VBO);
glBindBufferARB(GL_ARRAY_BUFFER_ARB, VBO);
More information about the mesa-commit
mailing list