OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
608ccfe
)
mesa: move declarations before code
author
Brian Paul
<brianp@vmware.com>
Sun, 16 Jan 2011 03:37:57 +0000
(20:37 -0700)
committer
Brian Paul
<brianp@vmware.com>
Sun, 16 Jan 2011 03:37:57 +0000
(20:37 -0700)
src/mesa/main/texfetch.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texfetch.c
b/src/mesa/main/texfetch.c
index
bbb0f8e
..
b73cedf
100644
(file)
--- a/
src/mesa/main/texfetch.c
+++ b/
src/mesa/main/texfetch.c
@@
-858,9
+858,10
@@
fetch_texel_chan_to_float(const struct gl_texture_image *texImage,
void
_mesa_set_fetch_functions(struct gl_texture_image *texImage, GLuint dims)
{
- ASSERT(dims == 1 || dims == 2 || dims == 3);
GLuint format = texImage->TexFormat;
+ ASSERT(dims == 1 || dims == 2 || dims == 3);
+
if (texImage->TexObject->sRGBDecode == GL_SKIP_DECODE_EXT &&
_mesa_get_format_color_encoding(format) == GL_SRGB) {
format = _mesa_get_srgb_format_linear(format);