projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
803504e
)
demos: silence uninitialized var warning
author
Brian Paul
<brianp@vmware.com>
Wed, 4 Feb 2009 15:38:28 +0000
(08:38 -0700)
committer
Brian Paul
<brianp@vmware.com>
Wed, 4 Feb 2009 23:33:25 +0000
(16:33 -0700)
progs/demos/engine.c
patch
|
blob
|
history
diff --git
a/progs/demos/engine.c
b/progs/demos/engine.c
index 6040a2f1030dad433aed4d8e28ff65205710df57..d1c3237ac752bea8080b7bfbb0d9cc7b7b7f5e4c 100644
(file)
--- a/
progs/demos/engine.c
+++ b/
progs/demos/engine.c
@@
-555,7
+555,7
@@
SquareWithHole(float squareSize, float holeRadius)
for (i = 0; i <= 360; i += 5) {
const float x1 = holeRadius * cos(DEG_TO_RAD(i));
const float y1 = holeRadius * sin(DEG_TO_RAD(i));
- float x2
, y2
;
+ float x2
= 0.0F, y2 = 0.0F
;
if (i > 315 || i <= 45) {
x2 = squareSize;
y2 = squareSize * tan(DEG_TO_RAD(i));