mesa: Add support for querying GL_VERTEX_ATTRIB_ARRAY_LONG
authorFredrik Höglund <fredrik@kde.org>
Mon, 2 Mar 2015 18:04:16 +0000 (19:04 +0100)
committerFredrik Höglund <fredrik@kde.org>
Fri, 8 May 2015 13:31:04 +0000 (15:31 +0200)
This parameter was added in OpenGL 4.3 and GL_ARB_direct_state_access.

Reviewed-by: Laura Ekstrand <laura@jlekstrand.net>
src/mesa/main/varray.c

index 7f14ffb297096d9811e7b42c8b578c3c478213da..540ebaf07303908493967fb9f90a28294689e341 100644 (file)
@@ -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)) {