Mesa (master): tests: check for GL_EXT/ARB_framebuffer_object

Brian Paul brianp at kemper.freedesktop.org
Tue Jun 9 14:07:50 PDT 2009


Module: Mesa
Branch: master
Commit: 29c79a03a42365b4bf828c81ab8676e3e42cfbaf
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=29c79a03a42365b4bf828c81ab8676e3e42cfbaf

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Jun  9 15:06:41 2009 -0600

tests: check for GL_EXT/ARB_framebuffer_object

---

 progs/tests/getteximage.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/progs/tests/getteximage.c b/progs/tests/getteximage.c
index f0160f5..e4818a8 100644
--- a/progs/tests/getteximage.c
+++ b/progs/tests/getteximage.c
@@ -154,7 +154,9 @@ Draw(void)
 
    TestGetTexImage();
 
-   TestGetTexImageRTT();
+   if (glutExtensionSupported("GL_EXT_framebuffer_object") ||
+       glutExtensionSupported("GL_ARB_framebuffer_object"))
+      TestGetTexImageRTT();
 
    glutDestroyWindow(Win);
    exit(0);



More information about the mesa-commit mailing list