foo
[voxscape] / src / glfb.c
index c60715d..a939ba6 100644 (file)
@@ -98,13 +98,16 @@ void glfb_update(void *pixels)
 
 void glfb_display(void)
 {
+       glClearColor(0.2, 0.2, 0.2, 1);
+       glClear(GL_COLOR_BUFFER_BIT);
+
        glBegin(GL_TRIANGLES);
        glTexCoord2f(0, 0);
        glVertex2f(-1, -1);
        glTexCoord2f(tex_sx * 2.0f, 0);
-       glVertex2f(4, -1);
+       glVertex2f(3, -1);
        glTexCoord2f(0, tex_sy * 2.0f);
-       glVertex2f(-1, 4);
+       glVertex2f(-1, 3);
        glEnd();
 }