|
From: Tapio V. <aa...@us...> - 2009-11-09 22:14:07
|
Module: performous
Branch: master
Commit: 0fdaaf4f7d7d0ad2536feec0dd05ddfbca7fffcb
Author: Tapio Vierros <tap...@gm...>
Date: Tue Nov 10 00:04:36 2009 +0200
Face normal for drawBar()
---
game/guitargraph.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/guitargraph.cc b/game/guitargraph.cc
index 89219fb..7d94ff6 100644
--- a/game/guitargraph.cc
+++ b/game/guitargraph.cc
@@ -522,7 +522,6 @@ void GuitarGraph::drawNote(int fret, glutil::Color c, float tBeg, float tEnd, fl
vertexPair(x, y, c, 1.0f);
y -= 2 * fretWid;
vertexPair(x, y, c, 0.5f);
-
}
// Render the middle
UseTexture tblock(m_button_l);
@@ -555,6 +554,7 @@ void GuitarGraph::drawNote(int fret, glutil::Color c, float tBeg, float tEnd, fl
void GuitarGraph::drawBar(double time, float h) {
glutil::Begin block(GL_TRIANGLE_STRIP);
+ glNormal3f(0.0f, 1.0f, 0.0f);
glVertex2f(-2.5f, time2y(time + h));
glVertex2f(2.5f, time2y(time + h));
glVertex2f(-2.5f, time2y(time - h));
|