summaryrefslogtreecommitdiff
path: root/src/mesa/main/texfetch.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-01-15 20:41:26 -0700
committerBrian Paul <brianp@vmware.com>2011-01-15 20:41:26 -0700
commitd136d1d2e1174d2420ce5e32507904243ab240cd (patch)
tree1b3d4e4599b51176de2d5ba55baf6d4470278ada /src/mesa/main/texfetch.c
parentaad7219f80e21739c521d58a6e32a14114ac0bb0 (diff)
mesa: minor tweaks in _mesa_set_fetch_functions()
Diffstat (limited to 'src/mesa/main/texfetch.c')
-rw-r--r--src/mesa/main/texfetch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/texfetch.c b/src/mesa/main/texfetch.c
index b73cedf479..8aa1e4970d 100644
--- a/src/mesa/main/texfetch.c
+++ b/src/mesa/main/texfetch.c
@@ -858,7 +858,7 @@ fetch_texel_chan_to_float(const struct gl_texture_image *texImage,
void
_mesa_set_fetch_functions(struct gl_texture_image *texImage, GLuint dims)
{
- GLuint format = texImage->TexFormat;
+ gl_format format = texImage->TexFormat;
ASSERT(dims == 1 || dims == 2 || dims == 3);
@@ -866,8 +866,8 @@ _mesa_set_fetch_functions(struct gl_texture_image *texImage, GLuint dims)
_mesa_get_format_color_encoding(format) == GL_SRGB) {
format = _mesa_get_srgb_format_linear(format);
}
- texImage->FetchTexelf =
- _mesa_get_texel_fetch_func(format, dims);
+
+ texImage->FetchTexelf = _mesa_get_texel_fetch_func(format, dims);
texImage->FetchTexelc = fetch_texel_float_to_chan;