lua-users home
lua-l archive

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


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