diff options
author | Brian Paul <[email protected]> | 2000-11-09 16:53:26 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-11-09 16:53:26 +0000 |
commit | 560538519489562e5b6721714dd15dae79ce445f (patch) | |
tree | 09f86609946ee65675fc69d90c9676d2b4f820c5 /progs/tests | |
parent | 14425aeca18fdf1223625a9b5b6d32f619715bee (diff) |
fixed mipmap setup bug
Diffstat (limited to 'progs/tests')
-rw-r--r-- | progs/tests/manytex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/progs/tests/manytex.c b/progs/tests/manytex.c index 06e67bdbccc..0f8f9574be4 100644 --- a/progs/tests/manytex.c +++ b/progs/tests/manytex.c @@ -1,4 +1,4 @@ -/* $Id: manytex.c,v 1.2 2000/10/23 23:32:22 brianp Exp $ */ +/* $Id: manytex.c,v 1.3 2000/11/09 16:53:26 brianp Exp $ */ /* * test handling of many texture maps @@ -230,7 +230,7 @@ static void Init( void ) GLint level = 0; GLint w = TexWidth, h = TexHeight; while (1) { - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, w, h, 0, + glTexImage2D(GL_TEXTURE_2D, level, GL_RGBA, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, texImage); if (w == 1 && h == 1) break; |