summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 607f3b77dc..7fbf2b7642 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;