mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-13 10:51:35 +00:00
Fix the utils copy of glad not being initialized
This commit is contained in:
parent
1a796039d9
commit
1ac25e850a
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user