aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/image.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-03-12 16:13:44 -0600
committerBrian Paul <[email protected]>2009-03-12 16:13:44 -0600
commit47053782b8e82f447d7d2fb590da9cced2926021 (patch)
treea272b92c9e012f8552ea9730b4ec9ca862f17e5e /src/mesa/main/image.c
parent363fc6d64fc8b813f2216b8b28414c6a2c6d2963 (diff)
mesa: move declarations before code
Diffstat (limited to 'src/mesa/main/image.c')
-rw-r--r--src/mesa/main/image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index ed0811660d2..5c5f9f6028a 100644
--- a/src/mesa/main/image.c
+++ b/src/mesa/main/image.c
@@ -3996,6 +3996,8 @@ _mesa_unpack_dudv_span_byte( GLcontext *ctx,
{
GLint dstComponents;
GLfloat rgba[MAX_WIDTH][4];
+ GLbyte *dst = dest;
+ GLuint i;
dstComponents = _mesa_components_in_format( dstFormat );
/* source & dest image formats should have been error checked by now */
@@ -4014,8 +4016,6 @@ _mesa_unpack_dudv_span_byte( GLcontext *ctx,
*/
/* Now pack results in the requested dstFormat */
- GLbyte *dst = dest;
- GLuint i;
for (i = 0; i < n; i++) {
/* not sure - need clamp[-1,1] here? */
dst[0] = FLOAT_TO_BYTE(rgba[i][RCOMP]);