summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2015-01-12 12:40:01 +0000
committerJosé Fonseca <[email protected]>2015-01-12 12:40:01 +0000
commit457d40e9e880b410bf9f43b15c1927000ab3f440 (patch)
treea2efada282a99d2e95e77e04eea68b4f49b9709d /src/mesa
parentc471b09bf480c5e66d6def4946886f8bf345e9f9 (diff)
mesa: Move declarations to to of block.
To fix MSVC build. Trivial.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/pack.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c
index be8bc6cd92a..d1f368c79fd 100644
--- a/src/mesa/main/pack.c
+++ b/src/mesa/main/pack.c
@@ -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.
*