aboutsummaryrefslogtreecommitdiffstats
path: root/progs/perf/genmipmap.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-12-21 13:48:58 -0700
committerBrian Paul <[email protected]>2009-12-21 13:49:25 -0700
commitfdae39c28908801709d081fbb7319e70d0ba89ba (patch)
tree2cf07f92a0cb68ab29f0f86613b5d9c73b11f887 /progs/perf/genmipmap.c
parent79e74cda7347170f1015829ceafb0f5f18dd9236 (diff)
progs/perf: added check for GL_ARB_framebuffer_object
Diffstat (limited to 'progs/perf/genmipmap.c')
-rw-r--r--progs/perf/genmipmap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/perf/genmipmap.c b/progs/perf/genmipmap.c
index 4b7d6ad155b..20e2fa34107 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);