Skip to contentSkip to conversation

Opps Was Re: [patch] [renouveau] 1/2 test_exa shouldn't be run on cards without ARB_texture_rectangle

PATCH Mark Carey 1 participant 1 message Oct 20, 2007

lore
Share & tools
lore

Mark Carey

author
#0 lore raw

cvs checkout was stale and part of the patch hit the wrong place, fixup attached.

tests.c renamed from tests.c.orig +10 -9
@@ -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