Skip to content

Can't set OpenGL compatibility profile #13

@albrei43

Description

@albrei43

Hello,
I am trying to use the MoonGL/MoonGLFW with OpenGL compatibility profile for old fashioned OpenGL. But it doesn't work.

I used your Hello World example from moongl as a starting point. This works and opens an orange window.
I changed the window hint to
glfw.window_hint('opengl profile', 'compat')
and added the classic hello-world-triangle. I still get the Runtime Error:
lua: triangle.lua:25: attempt to call a nil value (field 'Begin')

It is very well possible, that this is not a problem of your Library, but that I am doing something wrong. But I can't figure out what. Can you help me?
I compiled your library on Debian Bookworm. Please ask if you need aditional information.

thanks in advance and thanks for sharing these great bindings

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions