[Mesa-dev] [PATCH] mesa-demos: Fixes a bug in demo2 application
Yasir Khan
yasir_khan at mentor.com
Mon Jan 13 05:31:34 PST 2014
From: Yasir-Khan <yasir_khan at mentor.com>
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>
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-dev
mailing list