[Piglit] [PATCH 04/13] util: Allow non-ES2 code to draw_rect with non-fixed-function arrays
Eric Anholt
eric at anholt.net
Wed Aug 28 15:36:29 PDT 2013
Paul Berry <stereotype441 at gmail.com> writes:
> 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.
Apparently because some slacker never finished the GLES1 dispatch bits.
(I really need to finish that some day)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20130828/11f5b5f9/attachment.pgp>
More information about the Piglit
mailing list