summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2011-02-15 00:25:08 -0800
committerVinson Lee <[email protected]>2011-02-15 00:27:16 -0800
commitcd8af3b60bf1ab7ec157042d6a63fb7ece25d954 (patch)
tree5ab4dc41788fc0eb5589ad8b4d4eb47805ffe66c
parentb9e2cde6006b557a3a23a82384899f4d5a5ac7b8 (diff)
nvc0: Fix uninitialized variable warning.
Fixes this GCC warning. nvc0_tgsi_to_nc.c: In function 'bld_tex': nvc0_tgsi_to_nc.c:1392: warning: 'dim' may be used uninitialized in this function
-rw-r--r--src/gallium/drivers/nvc0/nvc0_tgsi_to_nc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_tgsi_to_nc.c b/src/gallium/drivers/nvc0/nvc0_tgsi_to_nc.c
index 72bfcd0c95f..687def0344d 100644
--- a/src/gallium/drivers/nvc0/nvc0_tgsi_to_nc.c
+++ b/src/gallium/drivers/nvc0/nvc0_tgsi_to_nc.c
@@ -1175,7 +1175,7 @@ static INLINE void
describe_texture_target(unsigned target, int *dim,
int *array, int *cube, int *shadow)
{
- *array = *cube = *shadow = 0;
+ *dim = *array = *cube = *shadow = 0;
switch (target) {
case TGSI_TEXTURE_1D: