From 714cdd88a4f0b6bdfe39b6562813ca58740bbbe6 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 4 Jan 2002 21:05:57 +0000 Subject: added some assertions to exercise glIsTexture() --- progs/demos/texobj.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'progs/demos/texobj.c') diff --git a/progs/demos/texobj.c b/progs/demos/texobj.c index 2c0dbc18267..d4173604b7d 100644 --- a/progs/demos/texobj.c +++ b/progs/demos/texobj.c @@ -1,4 +1,4 @@ -/* $Id: texobj.c,v 1.5 2000/07/19 23:57:24 brianp Exp $ */ +/* $Id: texobj.c,v 1.6 2002/01/04 21:05:57 brianp Exp $ */ /* * Example of using the 1.1 texture object functions. @@ -7,6 +7,7 @@ * Brian Paul June 1996 This file is in the public domain. */ +#include #include #include #include @@ -173,6 +174,7 @@ static void init( void ) if (UseObj) { #ifdef TEXTURE_OBJECT glBindTexture( GL_TEXTURE_2D, TexObj[0] ); + assert(glIsTexture(TexObj[0])); #endif } else { @@ -206,7 +208,9 @@ static void init( void ) if (UseObj) { #ifdef TEXTURE_OBJECT glBindTexture( GL_TEXTURE_2D, TexObj[1] ); + assert(glIsTexture(TexObj[1])); #endif + assert(!glIsTexture(TexObj[1] + 999)); } else { glNewList( TexObj[1], GL_COMPILE ); -- cgit v1.2.3