diff options
author | Brian Paul <brianp@vmware.com> | 2009-09-27 20:07:41 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-09-27 20:07:41 -0600 |
commit | e0bc4533ebccbfb844522e2b6ddd171b97d693e8 (patch) | |
tree | b25ab8cc1e3e5b23406102ab5ebadeb9ec581d27 /src/mesa/drivers/dri/sis/sis_tex.c | |
parent | b58bc12ed4a3de6c828bd26c4820d7ddbb1eabd6 (diff) |
mesa/drivers: use _mesa_get_format_bytes()
Diffstat (limited to 'src/mesa/drivers/dri/sis/sis_tex.c')
-rw-r--r-- | src/mesa/drivers/dri/sis/sis_tex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/sis/sis_tex.c b/src/mesa/drivers/dri/sis/sis_tex.c index 28ced6cfd5..f40a873209 100644 --- a/src/mesa/drivers/dri/sis/sis_tex.c +++ b/src/mesa/drivers/dri/sis/sis_tex.c @@ -425,7 +425,7 @@ static void sisTexSubImage1D( GLcontext *ctx, /* Upload the texture */ WaitEngIdle(smesa); - texelBytes = texImage->TexFormat->TexelBytes; + texelBytes = _mesa_get_format_bytes(texImage->TexFormat->MesaFormat); copySize = width * texelBytes; src = (char *)texImage->Data + xoffset * texelBytes; @@ -513,7 +513,7 @@ static void sisTexSubImage2D( GLcontext *ctx, /* Upload the texture */ WaitEngIdle(smesa); - texelBytes = texImage->TexFormat->TexelBytes; + texelBytes = _mesa_get_format_bytes(texImage->TexFormat->MesaFormat); copySize = width * texelBytes; src = (char *)texImage->Data + (xoffset + yoffset * texImage->Width) * |