diff --git a/src/utils/OpenGLBinding.cpp b/src/utils/OpenGLBinding.cpp index 71002cbca7..037b7c2032 100644 --- a/src/utils/OpenGLBinding.cpp +++ b/src/utils/OpenGLBinding.cpp @@ -110,6 +110,9 @@ namespace utils { } void GetProcAndDevice(dawnProcTable* procs, dawnDevice* device) override { glfwMakeContextCurrent(mWindow); + // Load the GL entry points in our copy of the glad static library + gladLoadGLLoader(reinterpret_cast(glfwGetProcAddress)); + dawn_native::opengl::Init(reinterpret_cast(glfwGetProcAddress), procs, device);