diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2001-06-20 19:12:30 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2001-06-20 19:12:30 +0000 |
commit | 4d99e5b2e765b24135218f23077b8d912adee07d (patch) | |
tree | b15507b90c47a1c85390786240d1e89be69ea737 /progs | |
parent | f6df34ecbe384f1e426c0758b07915463bd47cec (diff) |
also print GL_MAX_TEXTURE_SIZE
Diffstat (limited to 'progs')
-rw-r--r-- | progs/demos/multiarb.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/progs/demos/multiarb.c b/progs/demos/multiarb.c index 51d5e38d7..211ae1711 100644 --- a/progs/demos/multiarb.c +++ b/progs/demos/multiarb.c @@ -1,4 +1,4 @@ -/* $Id: multiarb.c,v 1.9 2001/06/13 14:33:16 brianp Exp $ */ +/* $Id: multiarb.c,v 1.10 2001/06/20 19:12:30 brianp Exp $ */ /* * GL_ARB_multitexture demo @@ -12,6 +12,9 @@ /* * $Log: multiarb.c,v $ + * Revision 1.10 2001/06/20 19:12:30 brianp + * also print GL_MAX_TEXTURE_SIZE + * * Revision 1.9 2001/06/13 14:33:16 brianp * moved glTexEnvi calls to better logical locations * @@ -278,7 +281,7 @@ static void SpecialKey( int key, int x, int y ) static void Init( int argc, char *argv[] ) { GLuint texObj[2]; - GLint units; + GLint units, size; const char *exten = (const char *) glGetString(GL_EXTENSIONS); if (!strstr(exten, "GL_ARB_multitexture")) { @@ -289,6 +292,9 @@ static void Init( int argc, char *argv[] ) glGetIntegerv(GL_MAX_TEXTURE_UNITS_ARB, &units); printf("%d texture units supported\n", units); + glGetIntegerv(GL_MAX_TEXTURE_SIZE, &size); + printf("%d x %d max texture size\n", size, size); + glPixelStorei(GL_UNPACK_ALIGNMENT, 1); /* allocate two texture objects */ |