wscreensaver: configure glmatrix

Since I have commented out all the config structures in glmatrix.c, it
was not getting proper default values. Hardcode some default there.

Remove glClear from reshape_matrix(), as wscreensaver does not support
rendering commands in reshape call.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
dev
Pekka Paalanen 13 years ago
parent 11f53f56db
commit 3da492b8d5
  1. 12
      clients/glmatrix.c

@ -175,14 +175,14 @@ typedef struct {
static matrix_configuration *mps = NULL; static matrix_configuration *mps = NULL;
static GLfloat speed; static GLfloat speed = 1.0;
static GLfloat density; static GLfloat density = 20.0;
static Bool do_clock; static Bool do_clock;
static char *timefmt; static char *timefmt;
static Bool do_fog; static Bool do_fog = 1;
static Bool do_waves; static Bool do_waves;
static Bool do_rotate; static Bool do_rotate = 1;
static Bool do_texture; static Bool do_texture = 1;
static char *mode_str; static char *mode_str;
#if 0 #if 0
@ -582,8 +582,6 @@ reshape_matrix (ModeInfo *mi, int width, int height)
gluLookAt( 0.0, 0.0, 25.0, gluLookAt( 0.0, 0.0, 25.0,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 1.0, 0.0); 0.0, 1.0, 0.0);
glClear(GL_COLOR_BUFFER_BIT);
} }

Loading…
Cancel
Save