From: Ash Tyndall Date: Thu, 20 Oct 2011 12:39:55 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=440f29f1a3cca643537d0e5bf1ffbb0221fd9226;p=atyndall%2Fcits2231.git --- diff --git a/helper.c b/helper.c index 0d5574b..8d45489 100644 --- 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 --- a/scene.c +++ b/scene.c @@ -412,6 +412,7 @@ int main(int argc, char **argv) { glDepthFunc(GL_LEQUAL); // the type glEnable(GL_CULL_FACE); glEnable(GL_TEXTURE_2D); + glEnable(GL_BLEND); glLineWidth(1.0); glMatrixMode(GL_PROJECTION);