diff options
author | Brian Paul <[email protected]> | 2002-09-27 02:45:37 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-09-27 02:45:37 +0000 |
commit | 89fb06fcc11cbe3f23521312155d6c55d869f526 (patch) | |
tree | fcb959864dd8be6105f4a1fdc4ee78d30126e265 /src/mesa/main/texstate.c | |
parent | 1a0bfdc8c1d798bf09daa3a07f9f873562f6c112 (diff) |
new texture compression infrastructure
Diffstat (limited to 'src/mesa/main/texstate.c')
-rw-r--r-- | src/mesa/main/texstate.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index 302f071093a..1287bdf2bf8 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -1,4 +1,4 @@ -/* $Id: texstate.c,v 1.78 2002/09/08 17:29:16 brianp Exp $ */ +/* $Id: texstate.c,v 1.79 2002/09/27 02:45:38 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1461,7 +1461,7 @@ _mesa_GetTexLevelParameteriv( GLenum target, GLint level, maxLevels = 1; break; default: - _mesa_printf(ctx, "bad target in _mesa_GetTexLevelParameter (0x%x)", target); + _mesa_problem(ctx, "switch in _mesa_GetTexLevelParameter"); return; } @@ -1557,7 +1557,8 @@ _mesa_GetTexLevelParameteriv( GLenum target, GLint level, if (ctx->Extensions.SGIX_depth_texture) *params = img->TexFormat->DepthBits; else - _mesa_error(ctx, GL_INVALID_ENUM, "glGetTexLevelParameter[if]v(pname)"); + _mesa_error(ctx, GL_INVALID_ENUM, + "glGetTexLevelParameter[if]v(pname)"); return; /* GL_ARB_texture_compression */ @@ -1567,10 +1568,11 @@ _mesa_GetTexLevelParameteriv( GLenum target, GLint level, *params = img->CompressedSize; else _mesa_error(ctx, GL_INVALID_OPERATION, - "glGetTexLevelParameter[if]v(pname)"); + "glGetTexLevelParameter[if]v(pname)"); } else { - _mesa_error(ctx, GL_INVALID_ENUM, "glGetTexLevelParameter[if]v(pname)"); + _mesa_error(ctx, GL_INVALID_ENUM, + "glGetTexLevelParameter[if]v(pname)"); } return; case GL_TEXTURE_COMPRESSED_ARB: @@ -1578,12 +1580,14 @@ _mesa_GetTexLevelParameteriv( GLenum target, GLint level, *params = (GLint) img->IsCompressed; } else { - _mesa_error(ctx, GL_INVALID_ENUM, "glGetTexLevelParameter[if]v(pname)"); + _mesa_error(ctx, GL_INVALID_ENUM, + "glGetTexLevelParameter[if]v(pname)"); } return; default: - _mesa_error(ctx, GL_INVALID_ENUM, "glGetTexLevelParameter[if]v(pname)"); + _mesa_error(ctx, GL_INVALID_ENUM, + "glGetTexLevelParameter[if]v(pname)"); } } |