From 2ad0268871a4a35c3a9cd77969ef0563a887299f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fredrik=20H=C3=B6glund?= Date: Mon, 2 Mar 2015 19:04:16 +0100 Subject: [PATCH] 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 --- src/mesa/main/varray.c | 5 +++++ 1 file changed, 5 insertions(+) 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)) { -- 2.30.2