mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 23:26:24 +00:00
dawn_native: Fixup namespace from backend:: to dawn_native::
This commit is contained in:
committed by
Corentin Wallez
parent
30965a7729
commit
49a65d0c0c
@@ -25,9 +25,9 @@
|
||||
#include <cstdio>
|
||||
#include "GLFW/glfw3.h"
|
||||
|
||||
namespace backend { namespace opengl {
|
||||
namespace dawn_native { namespace opengl {
|
||||
void Init(void* (*getProc)(const char*), dawnProcTable* procs, dawnDevice* device);
|
||||
}} // namespace backend::opengl
|
||||
}} // namespace dawn_native::opengl
|
||||
|
||||
namespace utils {
|
||||
class SwapChainImplGL {
|
||||
@@ -113,8 +113,8 @@ namespace utils {
|
||||
}
|
||||
void GetProcAndDevice(dawnProcTable* procs, dawnDevice* device) override {
|
||||
glfwMakeContextCurrent(mWindow);
|
||||
backend::opengl::Init(reinterpret_cast<void* (*)(const char*)>(glfwGetProcAddress),
|
||||
procs, device);
|
||||
dawn_native::opengl::Init(reinterpret_cast<void* (*)(const char*)>(glfwGetProcAddress),
|
||||
procs, device);
|
||||
|
||||
mBackendDevice = *device;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user