From: Tilman Sauerbeck Date: Fri, 28 Apr 2006 21:50:41 +0000 (+0000) Subject: fptest1 requires GL_NV_fragment_program X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9ecd280f338a722b356faf83872cf0ccaf19e0c6;p=mesa.git fptest1 requires GL_NV_fragment_program --- diff --git a/progs/tests/fptest1.c b/progs/tests/fptest1.c index d0bcdaa226d..095190a8aef 100644 --- a/progs/tests/fptest1.c +++ b/progs/tests/fptest1.c @@ -149,6 +149,11 @@ static void Init( void ) GLuint progs[20]; + if (!glutExtensionSupported ("GL_NV_fragment_program")) { + printf("Sorry, this program requires GL_NV_fragment_program\n"); + exit(1); + } + glGenProgramsNV(20, progs); assert(progs[0]); assert(progs[1]);