[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaJIT + glXGetProcAddress
- From: Henk Boom <henk@...>
- Date: Thu, 15 Mar 2012 18:42:19 -0400
I've attached the smallest example I could put together. It's for
linux and depends on glfw >= 2.7. Just make with proper paths in
cflags/ldflags, then run init.lua though luajit.
henk
On 2012-03-15, Mike Pall <mikelu-1203@mike.de> wrote:
> Henk Boom wrote:
>> I would expect glCreateShader to return a non-zero value, as per the
>> spec, but it returns 0 (opengl's null handle) every time. I should
>> mention that an opengl context of the proper version has already been
>> initialized at this point through GLFW.
>
> Well, a problem with the context would have been my first guess.
> But I don't see anything obviously wrong. Can you post a complete
> example, including your (minimized) GL initialization code?
>
> I know other people have used GL extensions successfully via the
> FFI (lots of projects on GitHub). So I don't think it's an issue
> with the FFI itself.
>
> --Mike
>
>
Attachment:
opengl-ffi-test.tgz
Description: GNU Zip compressed data