Skip to content

SymbolLoadingException #465

Answered by Perksey
courgeon asked this question in Q&A
Apr 23, 2021 · 2 comments · 8 replies
Discussion options

You must be logged in to vote
var gl = GL.GetApi(glfw.Context);

You're trying to use the context we use to load GLFW to load OpenGL functions, which won't work. Instead, you need to create a context which hooks into glfwGetProcAddress. Luckily, we've already done this for you. Try this line:

var gl = GL.GetApi(glfw, myCoolWindowPointer);

Where myCoolWindowPointer is obtained by glfw.CreateWindow. You can't create a GlfwContext until you have a window on-screen.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@Perksey
Comment options

@courgeon
Comment options

@courgeon
Comment options

@courgeon
Comment options

@Perksey
Comment options

Answer selected by Perksey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants