projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
363fc6d
)
mesa: move declarations before code
author
Brian Paul
<brianp@vmware.com>
Thu, 12 Mar 2009 22:13:44 +0000
(16:13 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 12 Mar 2009 22:13:44 +0000
(16:13 -0600)
src/mesa/main/image.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/image.c
b/src/mesa/main/image.c
index ed0811660d2508029b147ff57db3c34b02b05df7..5c5f9f6028acadba5bd8faff0f1615dfd375b96a 100644
(file)
--- 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]);