[Mesa-dev] [PATCH 1/2] mesa/main: Make get_hash.c values constant.
Carl Worth
cworth at cworth.org
Fri Jun 6 17:13:26 PDT 2014
Ian Romanick <idr at freedesktop.org> writes:
> Series is
>
> Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
> Cc: "10.1 10.2" <mesa-stable at lists.freedesktop.org>
This hunk:
+ /* ARB_vertex_array_bgra */
+ case GL_COLOR_ARRAY_SIZE:
+ array = &ctx->Array.VAO->VertexAttrib[VERT_ATTRIB_COLOR0];
+ v->value_int = array->Format == GL_BGRA ? GL_BGRA : array->Size;
+ break;
+ case GL_SECONDARY_COLOR_ARRAY_SIZE:
+ array = &ctx->Array.VAO->VertexAttrib[VERT_ATTRIB_COLOR1];
+ v->value_int = array->Format == GL_BGRA ? GL_BGRA : array->Size;
+ break;
+
Doesn't compile in 10.1:
main/get.c: In function 'find_custom_value':
main/get.c:847:26: error: 'struct gl_array_attrib' has no member named 'VAO'
array = &ctx->Array.VAO->VertexAttrib[VERT_ATTRIB_COLOR0];
Is that an easy backport or a patch we should drop? (I tried to scan the
patches on the other branches, but in my quick look I didn't see how to
backport this patch).
-Carl
--
carl.d.worth at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140606/97a7da5f/attachment.sig>
More information about the mesa-dev
mailing list