summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-02-28 19:31:39 +0000
committerBrian Paul <[email protected]>2001-02-28 19:31:39 +0000
commitb4203c1c49d637432a6ede6e77fe95f6734729bf (patch)
treed84f61becfe772bdce45f58422f4f2e6cf671fa4 /src/mesa/main
parent0221e4d6c8a577e2355696de260d101ce28a9570 (diff)
removed some bogus error checks
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/texstate.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index 607f3b77dcf..7fbf2b76420 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa/main/texstate.c
@@ -1,4 +1,4 @@
-/* $Id: texstate.c,v 1.33 2001/02/20 16:42:25 brianp Exp $ */
+/* $Id: texstate.c,v 1.34 2001/02/28 19:31:39 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -911,22 +911,10 @@ _mesa_GetTexLevelParameteriv( GLenum target, GLint level,
*params = img->Width;
return;
case GL_TEXTURE_HEIGHT:
- if (dimensions > 1) {
- *params = img->Height;
- }
- else {
- gl_error( ctx, GL_INVALID_ENUM,
- "glGetTexLevelParameter[if]v(pname=GL_TEXTURE_HEIGHT)" );
- }
+ *params = img->Height;
return;
case GL_TEXTURE_DEPTH:
- if (dimensions > 2) {
- *params = img->Depth;
- }
- else {
- gl_error( ctx, GL_INVALID_ENUM,
- "glGetTexLevelParameter[if]v(pname=GL_TEXTURE_DEPTH)" );
- }
+ *params = img->Depth;
return;
case GL_TEXTURE_COMPONENTS:
*params = img->IntFormat;