summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2011-01-07 15:56:43 -0800
committerVinson Lee <vlee@vmware.com>2011-01-07 15:57:43 -0800
commita927b09b0c8ce192a4e2815f7e53f3658d54ccdc (patch)
tree8404ce7464868de130182e7a3ee2a152807dc9a5
parentb3adb7eaab0f166fa32f5bf959e8175a2836f6f3 (diff)
texcombine: Ensure variable expected is initialized.
-rw-r--r--src/glean/ttexcombine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glean/ttexcombine.cpp b/src/glean/ttexcombine.cpp
index d4a43c2..b2ee316 100644
--- a/src/glean/ttexcombine.cpp
+++ b/src/glean/ttexcombine.cpp
@@ -1274,7 +1274,7 @@ TexCombineTest::RunMultiTextureTest(glmachine &machine, BasicResult &r,
// 2. Compute expected result
GLfloat prevColor[4];
- GLfloat expected[4];
+ GLfloat expected[4] = { 0 };
for (u = 0; u < machine.NumTexUnits; u++) {
if (u == 0) {
COPY4(prevColor, machine.FragColor);