main: glGetIntegeri_v fails for GL_VERTEX_BINDING_STRIDE
authorMarta Lofstedt <marta.lofstedt@linux.intel.com>
Thu, 7 May 2015 15:13:47 +0000 (17:13 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 11 May 2015 05:00:30 +0000 (08:00 +0300)
The return type for GL_VERTEX_BINDING_STRIDE is missing,
this cause glGetIntegeri_v to fail.

Signed-off-by: Marta Lofstedt <marta.lofstedt@linux.intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Cc: "10.4 10.5" <mesa-stable@lists.freedesktop.org>
src/mesa/main/get.c

index a881bc5..09be715 100644 (file)
@@ -1911,6 +1911,7 @@ find_value_indexed(const char *func, GLenum pname, GLuint index, union value *v)
       if (index >= ctx->Const.Program[MESA_SHADER_VERTEX].MaxAttribs)
           goto invalid_value;
       v->value_int = ctx->Array.VAO->VertexBinding[VERT_ATTRIB_GENERIC(index)].Stride;
+      return TYPE_INT;
 
    /* ARB_shader_image_load_store */
    case GL_IMAGE_BINDING_NAME: {