[Piglit] [PATCH] draw-vertices-half-float: Silence uninitialized variable warning.
Vinson Lee
vlee at vmware.com
Sat Dec 3 22:49:03 PST 2011
Fixes Coverity uninitialized scalar variable defect.
Signed-off-by: Vinson Lee <vlee at vmware.com>
---
tests/general/draw-vertices-half-float.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/tests/general/draw-vertices-half-float.c b/tests/general/draw-vertices-half-float.c
index 16117a0..b076f79 100644
--- a/tests/general/draw-vertices-half-float.c
+++ b/tests/general/draw-vertices-half-float.c
@@ -217,6 +217,8 @@ static void test_half_vertices_wrapped(unsigned short x1, unsigned short y1,
case 9: vbo = vboVertexPointer(2, GL_HALF_FLOAT_ARB, 8, v4o, sizeof(v4o), 2); break;
case 10:vbo = vboVertexPointer(3, GL_HALF_FLOAT_ARB, 8, v4o, sizeof(v4o), 2); break;
case 11:vbo = vboVertexPointer(4, GL_HALF_FLOAT_ARB, 8, v4o, sizeof(v4o), 2); break;
+
+ default:vbo = 0; assert(0); break;
}
glDrawArrays(GL_TRIANGLES, 0, 3);
--
1.7.7.3
More information about the Piglit
mailing list