diff options
author | Brian Paul <[email protected]> | 2009-09-27 19:53:54 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-09-27 19:53:54 -0600 |
commit | 21db8959c1134b43c9fe6d6179ee8fd9cde0b911 (patch) | |
tree | 8db92ce09191b1c0f1ea127db72a6028cfa7c32f /src/mesa/drivers/glide/fxsetup.c | |
parent | 2de768328067fa42501bdd4b753490e7a00167a4 (diff) |
glide: use _mesa_get_format_bytes()
Diffstat (limited to 'src/mesa/drivers/glide/fxsetup.c')
-rw-r--r-- | src/mesa/drivers/glide/fxsetup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/glide/fxsetup.c b/src/mesa/drivers/glide/fxsetup.c index d48726a62ae..9bf37967cd7 100644 --- a/src/mesa/drivers/glide/fxsetup.c +++ b/src/mesa/drivers/glide/fxsetup.c @@ -42,6 +42,7 @@ #include "fxdrv.h" #include "main/enums.h" +#include "main/formats.h" #include "main/texstore.h" #include "tnl/tnl.h" #include "tnl/t_context.h" @@ -91,7 +92,7 @@ fxTexValidate(GLcontext * ctx, struct gl_texture_object *tObj) GLint _w, _h, maxSize = 1 << fxMesa->textureMaxLod; if ((mml->width > maxSize) || (mml->height > maxSize)) { /* need to rescale */ - GLint texelBytes = texImage->TexFormat->TexelBytes; + GLint texelBytes = _mesa_get_format_bytes(texImage->TexFormat->MesaFormat); GLvoid *texImage_Data = texImage->Data; _w = MIN2(texImage->Width, maxSize); _h = MIN2(texImage->Height, maxSize); |