lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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