From: Fredrik Höglund Date: Mon, 2 Mar 2015 18:04:16 +0000 (+0100) Subject: mesa: Add support for querying GL_VERTEX_ATTRIB_ARRAY_LONG X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2ad0268871a4a35c3a9cd77969ef0563a887299f;p=mesa.git mesa: Add support for querying GL_VERTEX_ATTRIB_ARRAY_LONG This parameter was added in OpenGL 4.3 and GL_ARB_direct_state_access. Reviewed-by: Laura Ekstrand --- diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 7f14ffb2970..540ebaf0730 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -887,6 +887,11 @@ get_vertex_array_attrib(struct gl_context *ctx, return array->Integer; } goto error; + case GL_VERTEX_ATTRIB_ARRAY_LONG: + if (_mesa_is_desktop_gl(ctx)) { + return array->Doubles; + } + goto error; case GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB: if ((_mesa_is_desktop_gl(ctx) && ctx->Extensions.ARB_instanced_arrays) || _mesa_is_gles3(ctx)) {