[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: userdata expected, got userdata
- From: varol kaptan <varol.kaptan@...>
- Date: Wed, 8 Feb 2006 11:44:28 +0000
The last line should have been glSelectBuffer(BUFSIZE, selectBuf:ptr())
I'll see what I can do to make the error message make sense.
Varol Kaptan
On 2/8/06, Issac Trotts <issac.trotts@gmail.com> wrote:
> I'm running into some trouble with a lua interpreter linked statically with
> luaglut-0.4. When I try to run a straightforward translation of the OpenGL
> Redbook demo select.c, it gives an error in this code
>
> BUFSIZE=512
> local selectBuf = memarray('int', BUFSIZE)
> glSelectBuffer (BUFSIZE, selectBuf);
>
> $ ./lua select.lua
> ./lua: select.lua:148: bad argument #2 to `glSelectBuffer' (userdata
> expected, got userdata)
> stack traceback:
> [C]: in function `glSelectBuffer'
> select.lua:148: in function `selectObjects'
> select.lua:183: in function `display'
> [C]: in function `glutMainLoop'
> select.lua:201: in main chunk
> [C]: ?
>
> A Google search for "userdata expected, got userdata" came up empty, so I'm
> hoping someone here knows what's going on.
>
> Issac
>
>
>