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

Fredrik Höglund fredrik at kde.org
Wed Mar 18 16:18:46 PDT 2015


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



More information about the mesa-dev mailing list