Mesa (mesa_7_5_branch): progs/tests: Use opaque colors.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Mon Jun 15 19:28:22 UTC 2009


Module: Mesa
Branch: mesa_7_5_branch
Commit: 0e1abced56131c56717c4f317c33ac6e3fab4ff7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0e1abced56131c56717c4f317c33ac6e3fab4ff7

Author: José Fonseca <jfonseca at vmware.com>
Date:   Mon Jun 15 15:40:10 2009 +0100

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.

---

 progs/tests/zreaddraw.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/progs/tests/zreaddraw.c b/progs/tests/zreaddraw.c
index 3d8c557..2cbfeb6 100644
--- 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};




More information about the mesa-commit mailing list