[Piglit] [PATCH 04/13] util: Allow non-ES2 code to draw_rect with non-fixed-function arrays

Paul Berry stereotype441 at gmail.com
Wed Aug 28 09:41:10 PDT 2013


On 28 August 2013 09:36, Eric Anholt <eric at anholt.net> wrote:

> Bonus points if
> you drop the ifdefs around the calls to glVertexPointer() and
> glEnableVertexAttribArray() and friends -- piglit_dispatch means they're
> always available to be linked against, even if the implementation
> doesn't have them.
>

I thought this was the case too, and I nearly made a comment to this effect
when I reviewed this patch yesterday, but I tried it and it didn't work.
When compiling the gles1 target:

/home/pberry/piglit/tests/util/piglit-util-gl-common.c: In function
‘piglit_draw_rect_from_arrays’:
/home/pberry/piglit/tests/util/piglit-util-gl-common.c:687:220: error:
called object is not a function or function pointer
    glVertexAttribPointer(PIGLIT_ATTRIB_POS, 4, GL_FLOAT,

^

I haven't investigated why this happens.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20130828/747653c2/attachment-0001.html>


More information about the Piglit mailing list