OpenGL.Net: Does not seem to work on Linux targeting .NET Core
Seems like the initialization is failing on Linux, I’m targeting netcoreapp2.0
, using the NuGet package, and a simple call to any GL API crashes the app (ie. Gl.Initialize
will crash it as well).
About this issue
- Original URL
- State: open
- Created 6 years ago
- Comments: 28 (11 by maintainers)
Commits related to this issue
- Using RTDL_LAZY flag (#93) — committed to luca-piccioni/OpenGL.Net by luca-piccioni 6 years ago
Any fix on the horizon for this? Somewhat related would be the addition of allow users to supply their own loader. For example, a handler that could be passed to the bindings instead of trying to load the natives itself.
Popular libraries for context creation such as GLFW handle this responsibility reliably across platforms, and are pretty much the standard for creating native windows/contexts, and would allow easily bypassing this issue.
Had made my own quick/dirty bindings by auto-generated them from the registry, and uses GLFW as the loader works without any issues, where as this can’t even initialize, and
BindAPI
fails.And we are back to square one:
Just changed the
dlopen
flags.Look at the last code block 😐, its there.