projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f481cb
)
mesa: Initialize variable in get_tex_color_index.
author
Vinson Lee
<vlee@vmware.com>
Tue, 29 Dec 2009 21:38:02 +0000
(13:38 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Tue, 29 Dec 2009 21:38:02 +0000
(13:38 -0800)
src/mesa/main/texgetimage.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texgetimage.c
b/src/mesa/main/texgetimage.c
index 23765d275305b1b5a5ebbdd56e107e17c725e560..ac467c490a45ae24d925e16f0ff02d1df20eabab 100644
(file)
--- a/
src/mesa/main/texgetimage.c
+++ b/
src/mesa/main/texgetimage.c
@@
-103,7
+103,7
@@
get_tex_color_index(GLcontext *ctx, GLuint dimensions,
for (img = 0; img < depth; img++) {
for (row = 0; row < height; row++) {
- GLuint indexRow[MAX_WIDTH];
+ GLuint indexRow[MAX_WIDTH]
= { 0 }
;
void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels,
width, height, format, type,
img, row, 0);