diff options
author | Alan Hourihane <[email protected]> | 2004-12-14 09:11:52 +0000 |
---|---|---|
committer | Alan Hourihane <[email protected]> | 2004-12-14 09:11:52 +0000 |
commit | 38b317d508a2a3a4cc6d700ebca80c3b06c913e2 (patch) | |
tree | 017e198082e3b2c633beef5a69f9d9088124b37a /src/mesa/main | |
parent | 9fb024ba970b808d357a00ab7b8739a78559b39e (diff) |
uint*t -> u_int*t changes
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/colortab.c | 5 | ||||
-rw-r--r-- | src/mesa/main/enable.c | 3 | ||||
-rw-r--r-- | src/mesa/main/enums.h | 4 |
3 files changed, 4 insertions, 8 deletions
diff --git a/src/mesa/main/colortab.c b/src/mesa/main/colortab.c index e6752d01229..4eafe3e899f 100644 --- a/src/mesa/main/colortab.c +++ b/src/mesa/main/colortab.c @@ -543,7 +543,6 @@ _mesa_ColorSubTable( GLenum target, GLsizei start, struct gl_color_table *table = NULL; GLfloat rScale = 1.0, gScale = 1.0, bScale = 1.0, aScale = 1.0; GLfloat rBias = 0.0, gBias = 0.0, bBias = 0.0, aBias = 0.0; - GLint comps; ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx); switch (target) { @@ -636,8 +635,8 @@ _mesa_ColorSubTable( GLenum target, GLsizei start, return; } - comps = _mesa_components_in_format(table->Format); - assert(comps > 0); /* error should have been caught sooner */ + /* error should have been caught sooner */ + assert(_mesa_components_in_format(table->Format) > 0); if (start + count > (GLint) table->Size) { _mesa_error(ctx, GL_INVALID_VALUE, "glColorSubTable(count)"); diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index f1ed98d4bb1..8968c0aa838 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -645,7 +645,6 @@ void _mesa_set_enable( GLcontext *ctx, GLenum cap, GLboolean state ) texUnit->TexGenEnabled = newenabled; break; } - break; case GL_TEXTURE_GEN_S: { GLuint unit = ctx->Texture.CurrentUnit; struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; @@ -658,7 +657,6 @@ void _mesa_set_enable( GLcontext *ctx, GLenum cap, GLboolean state ) texUnit->TexGenEnabled = newenabled; break; } - break; case GL_TEXTURE_GEN_T: { GLuint unit = ctx->Texture.CurrentUnit; struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit]; @@ -671,7 +669,6 @@ void _mesa_set_enable( GLcontext *ctx, GLenum cap, GLboolean state ) texUnit->TexGenEnabled = newenabled; break; } - break; /* * CLIENT STATE!!! diff --git a/src/mesa/main/enums.h b/src/mesa/main/enums.h index d2fa917d42f..7e8d4ee94fc 100644 --- a/src/mesa/main/enums.h +++ b/src/mesa/main/enums.h @@ -31,13 +31,13 @@ * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ - +/* $XFree86: xc/extras/Mesa/src/mesa/main/enums.h,v 1.2 2004/06/23 19:40:14 tsi Exp $ */ #ifndef _ENUMS_H_ #define _ENUMS_H_ -#ifdef _HAVE_FULL_GL +#if defined(_HAVE_FULL_GL) && _HAVE_FULL_GL extern const char *_mesa_lookup_enum_by_nr( int nr ); extern int _mesa_lookup_enum_by_name( const char *symbol ); |