1/2 test_exa shouldn't be run on cards without ARB_texture_rectangle
PATCH 1/1 1/2 test_exa shouldn't be run on cards without ARB_texture_rectangle
NV5 doesnt like test_exa due to missing ARB_texture_rectangle so make sure test_exa is not run on this card
tests.c renamed from tests.c.org +10 -0
@@ -4722,6 +4722,15 @@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;
@@ -4824,4 +4833,5 @@dump_after (0 );printf ("# blitting ok\n" );TEST_EPILOGUE ; +#endif }
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau