aboutsummaryrefslogtreecommitdiff
path: root/src/glbits.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glbits.c')
-rw-r--r--src/glbits.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/glbits.c b/src/glbits.c
index 480c042..039135f 100644
--- a/src/glbits.c
+++ b/src/glbits.c
@@ -682,6 +682,8 @@ gint glbits_expose(GtkWidget *widget, GdkEventExpose *event, DisplayWindow *dw)
}
glMatrixMode(GL_MODELVIEW);
+ glShadeModel(GL_SMOOTH);
+ glDisable(GL_LIGHTING);
glLoadIdentity();
glTranslatef(0.0, 0.0, -20.0);
/* Draw the background (this is done before setting up rotations) */
@@ -695,15 +697,16 @@ gint glbits_expose(GtkWidget *widget, GdkEventExpose *event, DisplayWindow *dw)
glMaterialfv(GL_FRONT, GL_SPECULAR, black);
glMaterialf(GL_FRONT, GL_SHININESS, 0.0);
glBegin(GL_QUADS);
- glMaterialfv(GL_FRONT_AND_BACK, GL_EMISSION, bg_bot);
+ glColor3f(1.0, 1.0, 1.0);
glVertex3f(-3.0*aspect, -3.0, 0.0);
glVertex3f(+3.0*aspect, -3.0, 0.0);
- glMaterialfv(GL_FRONT_AND_BACK, GL_EMISSION, bg_top);
+ glColor3f(0.0, 0.0, 1.0);
glVertex3f(+3.0*aspect, +3.0, 0.0);
glVertex3f(-3.0*aspect, +3.0, 0.0);
glEnd();
/* Restore the old projection matrix */
glPopMatrix();
+ glEnable(GL_LIGHTING);
glClear(GL_DEPTH_BUFFER_BIT);
glMatrixMode(GL_MODELVIEW);