mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 15:16:16 +00:00
Rename ContextLost to DeviceLost
DeviceLost is a better name because we don't have a "context" as in OpenGL. Bug: dawn:153 Change-Id: Idf7fcb731a0e138f46a81fb31f0d11ff58b4fa96 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/10541 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
4078ed8b62
commit
5603dc9044
@@ -20,7 +20,7 @@ template<typename T>
|
||||
MaybeError OpenGLFunctionsBase::LoadProc(GetProcAddress getProc, T* memberProc, const char* name) {
|
||||
*memberProc = reinterpret_cast<T>(getProc(name));
|
||||
if (DAWN_UNLIKELY(memberProc == nullptr)) {
|
||||
return DAWN_CONTEXT_LOST_ERROR(std::string("Couldn't load GL proc: ") + name);
|
||||
return DAWN_DEVICE_LOST_ERROR(std::string("Couldn't load GL proc: ") + name);
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user