Demos (master): mesa-demos: Fixes a bug in demo2 application

Brian Paul brianp at kemper.freedesktop.org
Mon Jan 20 14:38:23 UTC 2014


Module: Demos
Branch: master
Commit: 5f8c209379d6089d710c4590afe951f8f51e1d30
URL:    http://cgit.freedesktop.org/mesa/demos/commit/?id=5f8c209379d6089d710c4590afe951f8f51e1d30

Author: Yasir-Khan <yasir_khan at mentor.com>
Date:   Mon Jan 13 05:31:00 2014 -0800

mesa-demos: Fixes a bug in demo2 application

Vertices array is being passed to glColorPointer whereas
its supposed to pass the color array

Signed-off-by: Yasir-Khan <yasir_khan at mentor.com>
Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/egl/opengl/demo2.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/egl/opengl/demo2.c b/src/egl/opengl/demo2.c
index 71a1a31..505b474 100644
--- a/src/egl/opengl/demo2.c
+++ b/src/egl/opengl/demo2.c
@@ -35,7 +35,7 @@ static void _subset_Rectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2,
    }
 
    glVertexPointer(2, GL_FLOAT, 0, v);
-   glColorPointer(4, GL_FLOAT, 0, v);
+   glColorPointer(4, GL_FLOAT, 0, c);
    glEnableClientState(GL_VERTEX_ARRAY);
    glEnableClientState(GL_COLOR_ARRAY);
 




More information about the mesa-commit mailing list