From 38f28665bf9fb5b2464738ca5074848ec2777ae1 Mon Sep 17 00:00:00 2001 From: Gareth Hughes Date: Wed, 28 Mar 2001 20:40:51 +0000 Subject: More texture format updates. Drivers now need only plug an appropriate format into texImage->TexFormat, the rest is handled by core Mesa. --- src/mesa/main/texstate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/main/texstate.c') diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index 93d12e7191..5e98965730 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -1,4 +1,4 @@ -/* $Id: texstate.c,v 1.39 2001/03/26 19:42:40 brianp Exp $ */ +/* $Id: texstate.c,v 1.40 2001/03/28 20:40:51 gareth Exp $ */ /* * Mesa 3-D graphics library @@ -956,8 +956,8 @@ _mesa_GetTexLevelParameteriv( GLenum target, GLint level, case GL_TEXTURE_DEPTH: *params = img->Depth; return; - case GL_TEXTURE_COMPONENTS: - *params = img->IntFormat; + case GL_TEXTURE_INTERNAL_FORMAT: + *params = img->TexFormat->IntFormat; return; case GL_TEXTURE_BORDER: *params = img->Border; -- cgit v1.2.3