[Mesa-dev] [PATCH 20/22] mesa: Add support for quering GL_VERTEX_ATTRIB_ARRAY_LONG

Laura Ekstrand laura at jlekstrand.net
Fri Mar 20 15:39:17 PDT 2015


You misspelled "Querying" in the commit message.

On Wed, Mar 18, 2015 at 4:18 PM, Fredrik Höglund <fredrik at kde.org> wrote:

> This parameter was added in OpenGL 4.3 and GL_ARB_direct_state_access.
> ---
>  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 bbfe947..ec768f0 100644
> --- a/src/mesa/main/varray.c
> +++ b/src/mesa/main/varray.c
> @@ -872,6 +872,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)) {
> --
> 1.8.5.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150320/9e63940e/attachment.html>


More information about the mesa-dev mailing list