Commit 5e98dee3b12ce7e3a4a6b2495930e78f51796576

sammy 2010-05-23T14:33:48

Activate blending and line smoothing in the mini demos. Texture fonts now work again, and polygon fonts look smoother.

diff --git a/demo/c-demo.c b/demo/c-demo.c
index ee253bc..7dcf034 100644
--- a/demo/c-demo.c
+++ b/demo/c-demo.c
@@ -126,6 +126,9 @@ static void RenderScene(void)
 
     glEnable(GL_LIGHTING);
     glEnable(GL_DEPTH_TEST);
+    glEnable(GL_LINE_SMOOTH);
+    glEnable(GL_BLEND);
+    glBlendFunc(GL_SRC_ALPHA, GL_ONE);
 
     glPushMatrix();
         glTranslatef(-0.9f, -0.2f, -10.0f);
diff --git a/demo/simple.cpp b/demo/simple.cpp
index 6bef5ec..850e312 100644
--- a/demo/simple.cpp
+++ b/demo/simple.cpp
@@ -118,6 +118,9 @@ static void RenderScene(void)
 
     glEnable(GL_LIGHTING);
     glEnable(GL_DEPTH_TEST);
+    glEnable(GL_LINE_SMOOTH);
+    glEnable(GL_BLEND);
+    glBlendFunc(GL_SRC_ALPHA, GL_ONE);
 
     glPushMatrix();
         glTranslatef(-0.9, -0.2, -10.0);