From b4203c1c49d637432a6ede6e77fe95f6734729bf Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 28 Feb 2001 19:31:39 +0000 Subject: [PATCH] removed some bogus error checks --- src/mesa/main/texstate.c | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index 607f3b7..7fbf2b7 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; -- 2.7.4