mesa: Move declarations to to of block.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 12 Jan 2015 12:40:01 +0000 (12:40 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 12 Jan 2015 12:40:01 +0000 (12:40 +0000)
To fix MSVC build.

Trivial.

src/mesa/main/pack.c

index be8bc6cd92a218f069333acba7c11756cfcbcef7..d1f368c79fde664c45c98b708bf0b7abbcd0de4a 100644 (file)
@@ -1438,15 +1438,15 @@ _mesa_pack_luminance_from_rgba_integer(GLuint n,
                                        GLenum dst_format,
                                        GLenum dst_type)
 {
-   assert(dst_format == GL_LUMINANCE_INTEGER_EXT ||
-          dst_format == GL_LUMINANCE_ALPHA_INTEGER_EXT);
-
    int i;
    int64_t lum64;
    int32_t lum32, alpha;
    bool dst_is_signed;
    int dst_bits;
 
+   assert(dst_format == GL_LUMINANCE_INTEGER_EXT ||
+          dst_format == GL_LUMINANCE_ALPHA_INTEGER_EXT);
+
    /* We first compute luminance values as a 64-bit addition of the
     * 32-bit R,G,B components, then we clamp the result to the dst type size.
     *