Fix the utils copy of glad not being initialized

This commit is contained in:
Corentin Wallez 2018-08-01 15:03:58 +02:00 committed by Corentin Wallez
parent 1a796039d9
commit 1ac25e850a
1 changed files with 3 additions and 0 deletions

View File

@ -110,6 +110,9 @@ namespace utils {
} }
void GetProcAndDevice(dawnProcTable* procs, dawnDevice* device) override { void GetProcAndDevice(dawnProcTable* procs, dawnDevice* device) override {
glfwMakeContextCurrent(mWindow); glfwMakeContextCurrent(mWindow);
// Load the GL entry points in our copy of the glad static library
gladLoadGLLoader(reinterpret_cast<GLADloadproc>(glfwGetProcAddress));
dawn_native::opengl::Init(reinterpret_cast<void* (*)(const char*)>(glfwGetProcAddress), dawn_native::opengl::Init(reinterpret_cast<void* (*)(const char*)>(glfwGetProcAddress),
procs, device); procs, device);