(no commit message)
authorAsh Tyndall <[email protected]>
Thu, 20 Oct 2011 12:39:55 +0000 (20:39 +0800)
committerAsh Tyndall <[email protected]>
Thu, 20 Oct 2011 12:39:55 +0000 (20:39 +0800)
helper.c
scene.c

index 0d5574b..8d45489 100644 (file)
--- a/helper.c
+++ b/helper.c
@@ -258,7 +258,7 @@ void drawLine() {
     // **NOTE: fix function
     glDisable(GL_TEXTURE_2D);
     glDisable(GL_LIGHTING);
-    glEnable(GL_BLEND);
+    //glEnable(GL_BLEND);
     glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
     glColor3f( 0.0, 0.0, 0.0 );
 
@@ -272,7 +272,7 @@ void drawLine() {
     glVertex3i( 0.0, 0.0, -lineLength );
     glEnd();
 
-    glDisable(GL_BLEND);
+    //glDisable(GL_BLEND);
     glEnable(GL_LIGHTING);
     glEnable(GL_TEXTURE_2D);
 }
\ No newline at end of file
diff --git a/scene.c b/scene.c
index 9803e13..51c8cfc 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -412,6 +412,7 @@ int main(int argc, char **argv) {
   glDepthFunc(GL_LEQUAL);  // the type\r
   glEnable(GL_CULL_FACE);\r
   glEnable(GL_TEXTURE_2D);\r
+  glEnable(GL_BLEND);\r
   glLineWidth(1.0);\r
 \r
   glMatrixMode(GL_PROJECTION);\r

UCC git Repository :: git.ucc.asn.au