From: Mathias Fröhlich Date: Sat, 17 Nov 2018 06:13:11 +0000 (+0100) Subject: mesa: Unify glEdgeFlagPointer data type. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=182ed6de8c18543682029585b1a69491791e55d4;p=mesa.git mesa: Unify glEdgeFlagPointer data type. 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 --- 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);