projects
/
voxscape
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
foo
[voxscape]
/
src
/
glfb.c
diff --git
a/src/glfb.c
b/src/glfb.c
index
c60715d
..
a939ba6
100644
(file)
--- a/
src/glfb.c
+++ b/
src/glfb.c
@@
-98,13
+98,16
@@
void glfb_update(void *pixels)
void glfb_display(void)
{
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);
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);
glTexCoord2f(0, tex_sy * 2.0f);
- glVertex2f(-1, 4);
+ glVertex2f(-1, 3);
glEnd();
}
glEnd();
}