From 182ed6de8c18543682029585b1a69491791e55d4 Mon Sep 17 00:00:00 2001 From: Mathias Fröhlich Date: Sat, 17 Nov 2018 07:13:11 +0100 Subject: mesa: Unify glEdgeFlagPointer data type. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use GL_UNSIGNED_BYTE as initialization data type for the edge flag vertex attribute array. The same datatype is used in the glEdgeFlagPointer function when setting the array pointer. Reviewed-by: Brian Paul Reviewed-by: Marek Olšák Signed-off-by: Mathias Fröhlich --- src/mesa/main/arrayobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c index 4977009f6f5..f80bf2c949c 100644 --- a/src/mesa/main/arrayobj.c +++ b/src/mesa/main/arrayobj.c @@ -441,7 +441,7 @@ _mesa_initialize_vao(struct gl_context *ctx, init_array(ctx, vao, VERT_ATTRIB_COLOR_INDEX, 1, GL_FLOAT); break; case VERT_ATTRIB_EDGEFLAG: - init_array(ctx, vao, VERT_ATTRIB_EDGEFLAG, 1, GL_BOOL); + init_array(ctx, vao, VERT_ATTRIB_EDGEFLAG, 1, GL_UNSIGNED_BYTE); break; case VERT_ATTRIB_POINT_SIZE: init_array(ctx, vao, VERT_ATTRIB_POINT_SIZE, 1, GL_FLOAT); -- cgit v1.2.3