[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: C function copying to void *
- From: Michael Gogins <michael.gogins@...>
- Date: Sat, 19 Feb 2011 08:04:53 -0500
Thanks for your prompt and accurate responses!
That was indeed the problem, I forgot to change x and y to my real
variables after pasting the signature into my code. Works now.
On Sat, Feb 19, 2011 at 7:00 AM, Mike Pall <email@example.com> wrote:
> malkia wrote:
>> I think the problem is that "x" and "y" are nil, not that color is of
>> the wrong type.
> Yes, that would be my guess, too. I've just pushed some changes to
> improve the error messages:
> cannot convert 'void *' to 'int'
> bad argument #1 to 'glReadPixels' (cannot convert 'nil' to 'int')
Michael dot Gogins at gmail dot com