mesa: move declarations before code

This commit is contained in:
Brian Paul
2011-01-15 20:37:57 -07:00
parent 608ccfe316
commit bfad484505
+2 -1
View File
@@ -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);