mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 21:30:23 +01:00
removed unneeded code in gluBuild1DMipmaps()
This commit is contained in:
parent
6fc61407a3
commit
19a2ebd02f
1 changed files with 4 additions and 7 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: mipmap.c,v 1.3 1999/11/09 06:16:59 brianp Exp $ */
|
||||
/* $Id: mipmap.c,v 1.4 1999/12/12 17:24:18 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -23,6 +23,9 @@
|
|||
|
||||
/*
|
||||
* $Log: mipmap.c,v $
|
||||
* Revision 1.4 1999/12/12 17:24:18 brianp
|
||||
* removed unneeded code in gluBuild1DMipmaps()
|
||||
*
|
||||
* Revision 1.3 1999/11/09 06:16:59 brianp
|
||||
* replace GLint with GLsizei in a gluScaleImage, gluBuild1/2DMipmaps()
|
||||
*
|
||||
|
|
@ -702,12 +705,6 @@ GLint GLAPIENTRY gluBuild1DMipmaps( GLenum target, GLint components,
|
|||
|
||||
free( texture );
|
||||
|
||||
/* make sure remaining mipmap levels are removed */
|
||||
for (l=levels;l<max_levels;l++) {
|
||||
glTexImage1D( GL_TEXTURE_1D, l, components, 0, 0,
|
||||
format, GL_UNSIGNED_BYTE, NULL );
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue