projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96128fd
)
progs/tests: added test for GL_EXT_texture_compression_s3tc support
author
Brian Paul
<brianp@vmware.com>
Sat, 10 Oct 2009 17:52:38 +0000
(11:52 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 29 Oct 2009 03:50:51 +0000
(21:50 -0600)
progs/tests/mipmap_comp.c
patch
|
blob
|
history
diff --git
a/progs/tests/mipmap_comp.c
b/progs/tests/mipmap_comp.c
index 5842e2b8805301fa3cfdc83a15cf599caec78534..dd2232113b671c1314c6ed1e3ab598daa38de558 100644
(file)
--- a/
progs/tests/mipmap_comp.c
+++ b/
progs/tests/mipmap_comp.c
@@
-285,6
+285,12
@@
main(int argc, char** argv)
glutInitWindowSize (600, 600);
glutCreateWindow (argv[0]);
glewInit();
+
+ if (!glutExtensionSupported("GL_EXT_texture_compression_s3tc")) {
+ fprintf(stderr, "This test requires GL_EXT_texture_compression_s3tc.\n");
+ exit(1);
+ }
+
myInit();
glutReshapeFunc (myReshape);
glutDisplayFunc(display);