mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
progs/tests: Use opaque colors.
Transparency is not relevant for this example, and leads to distraction due to different results in alpha visuals, when capturing images to disk.
This commit is contained in:
parent
db22b35d21
commit
0e1abced56
1 changed files with 2 additions and 2 deletions
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue