X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=progs%2Fdemos%2Ftexobj.c;h=ff701e98c3b4bd5de6a38bbd88880301d595658f;hb=9ac51f57efe07ed43a1e4224a7f5daddec401b36;hp=2c0dbc18267d53c6184ce5aed484be6f6d834ec2;hpb=cf89b89be8f6d9f00b8dd571ad0b80af1b7c12a1;p=mesa.git diff --git a/progs/demos/texobj.c b/progs/demos/texobj.c index 2c0dbc18267..ff701e98c3b 100644 --- a/progs/demos/texobj.c +++ b/progs/demos/texobj.c @@ -1,4 +1,3 @@ -/* $Id: texobj.c,v 1.5 2000/07/19 23:57:24 brianp Exp $ */ /* * Example of using the 1.1 texture object functions. @@ -7,7 +6,9 @@ * Brian Paul June 1996 This file is in the public domain. */ +#include #include +#include #include #include #include "GL/glut.h" @@ -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 );