[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- 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.
Regards,
Mike Gogins
On Sat, Feb 19, 2011 at 7:00 AM, Mike Pall <mikelu-1102@mike.de> 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:
>
> OLD:
> cannot convert 'void *' to 'int'
>
> NEW:
> bad argument #1 to 'glReadPixels' (cannot convert 'nil' to 'int')
>
> --Mike
>
>
--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com