mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-23 18:10:36 +02:00
glu/sgi: Silence uninitialized variable warnings.
This commit is contained in:
parent
19a40524d3
commit
57b5ca5d11
2 changed files with 4 additions and 4 deletions
|
|
@ -207,7 +207,7 @@ void sampleBotRightWithGridLine(Real* botVertex,
|
|||
return;
|
||||
}
|
||||
|
||||
Int segIndexMono, segIndexPass;
|
||||
Int segIndexMono = 0, segIndexPass;
|
||||
findBotRightSegment(rightChain,
|
||||
rightEnd,
|
||||
rightCorner,
|
||||
|
|
@ -293,7 +293,7 @@ void sampleBotLeftWithGridLine(Real* botVertex,
|
|||
return;
|
||||
}
|
||||
|
||||
Int segIndexPass, segIndexMono;
|
||||
Int segIndexPass, segIndexMono = 0;
|
||||
findBotLeftSegment(leftChain, leftEnd, leftCorner, grid->get_u_value(leftU), segIndexMono, segIndexPass);
|
||||
|
||||
sampleBotLeftWithGridLinePost(botVertex,
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ void sampleTopRightWithGridLine(Real* topVertex,
|
|||
return;
|
||||
}
|
||||
|
||||
Int segIndexSmall, segIndexLarge;
|
||||
Int segIndexSmall = 0, segIndexLarge;
|
||||
findTopRightSegment(rightChain,
|
||||
rightStart,
|
||||
rightEnd,
|
||||
|
|
@ -294,7 +294,7 @@ void sampleTopLeftWithGridLine(Real* topVertex,
|
|||
primStream* pStream
|
||||
)
|
||||
{
|
||||
Int segIndexSmall, segIndexLarge;
|
||||
Int segIndexSmall = 0, segIndexLarge;
|
||||
//if left chain is empty, then there is only one top vertex with one grid
|
||||
// line
|
||||
if(leftEnd < leftStart) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue