projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mesa: document sRGBDecode field
[mesa.git]
/
src
/
mesa
/
main
/
texfetch.c
diff --git
a/src/mesa/main/texfetch.c
b/src/mesa/main/texfetch.c
index b73cedf47946fa0d9902eced9f75187bf02260aa..8aa1e4970d5feb88c8e49b512adad55b557f73dc 100644
(file)
--- 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)
{
void
_mesa_set_fetch_functions(struct gl_texture_image *texImage, GLuint dims)
{
-
GLuin
t format = texImage->TexFormat;
+
gl_forma
t format = texImage->TexFormat;
ASSERT(dims == 1 || dims == 2 || dims == 3);
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);
}
_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;
texImage->FetchTexelc = fetch_texel_float_to_chan;