projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db22b35
)
progs/tests: Use opaque colors.
author
José Fonseca
<jfonseca@vmware.com>
Mon, 15 Jun 2009 14:40:10 +0000
(15:40 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Mon, 15 Jun 2009 14:40:10 +0000
(15:40 +0100)
Transparency is not relevant for this example, and leads to distraction
due to different results in alpha visuals, when capturing images to disk.
progs/tests/zreaddraw.c
patch
|
blob
|
history
diff --git
a/progs/tests/zreaddraw.c
b/progs/tests/zreaddraw.c
index 3d8c557b37062411389dd6016e350ff1006cc871..2cbfeb6ff186f0bf8f3b08379d014e5a656fb60f 100644
(file)
--- a/
progs/tests/zreaddraw.c
+++ b/
progs/tests/zreaddraw.c
@@
-21,7
+21,7
@@
static void Display(void)
GLfloat min, max;
int i;
- glClearColor(0.5, 0.5, 0.5, 0);
+ glClearColor(0.5, 0.5, 0.5,
1.
0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
/* draw a sphere */
@@
-82,7
+82,7
@@
static void Key(unsigned char key, int x, int y)
static void Init(void)
{
- const GLfloat blue[4] = {.1, .1, 1.0,
0
.0};
+ const GLfloat blue[4] = {.1, .1, 1.0,
1
.0};
const GLfloat gray[4] = {0.2, 0.2, 0.2, 1.0};
const GLfloat white[4] = {1.0, 1.0, 1.0, 1.0};
const GLfloat pos[4] = {0, 0, 10, 0};