summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorFredrik Höglund <[email protected]>2015-03-02 19:04:16 +0100
committerFredrik Höglund <[email protected]>2015-05-08 15:31:04 +0200
commit2ad0268871a4a35c3a9cd77969ef0563a887299f (patch)
tree28f561a6e9a04c65b8cec963eafb376a38c5bb6c /src/mesa
parent4f5160300dd143de8860e4e42d3dbfc7b534cfe2 (diff)
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 <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/varray.c5
1 files changed, 5 insertions, 0 deletions
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)) {