cvs checkout was stale and part of the patch hit the wrong place,
fixup attached.
--- tests.c.orig 2007-10-20 23:25:22.000000000 +1300
+++ tests.c 2007-10-20 23:25:58.000000000 +1300
@@ -4669,15 +4669,6 @@
// (ported to SDL by Sam Lantinga '2000)
int Width = 640, Height=480;
-#ifndef GL_ARB_texture_rectangle
- printf("# Sorry, no GL_ARB_texture_rectangle\n");
-#else
- const char *extensions = (const char *)regl.GetString(GL_EXTENSIONS);
- if (!strstr(extensions, "GL_ARB_texture_rectangle")) {
- fprintf(stderr,"No GL_ARB_texture_rectangle extension.");
- return;
- }
-
TEST_PROLOGUE;
printf("# test_nehe02()\n");
dump_before();
@@ -4730,6 +4721,16 @@
*/
void test_exa(void)
{
+
+#ifndef GL_ARB_texture_rectangle
+ printf("# Sorry, no GL_ARB_texture_rectangle\n");
+#else
+ const char *extensions = (const char *)regl.GetString(GL_EXTENSIONS);
+ if (!strstr(extensions, "GL_ARB_texture_rectangle")) {
+ fprintf(stderr,"No GL_ARB_texture_rectangle extension.");
+ return;
+ }
+
TEST_PROLOGUE;
GLuint screen_texnum,modulate_texnum;
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau