mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1859591 - Add gfxCriticalNote when failing to load EGL/GLES DLLs on Windows. r=gfx-reviewers,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D191206
This commit is contained in:
parent
98c14a6434
commit
c768201685
@ -150,7 +150,12 @@ static PRLibrary* LoadLibraryForEGLOnWindows(const nsAString& filename) {
|
||||
PRLibSpec lspec;
|
||||
lspec.type = PR_LibSpec_PathnameU;
|
||||
lspec.value.pathname_u = path.get();
|
||||
return PR_LoadLibraryWithFlags(lspec, PR_LD_LAZY | PR_LD_LOCAL);
|
||||
PRLibrary* lib = PR_LoadLibraryWithFlags(lspec, PR_LD_LAZY | PR_LD_LOCAL);
|
||||
if (!lib) {
|
||||
gfxCriticalNote << "Failed to load " << path.get() << " " << PR_GetError()
|
||||
<< " " << PR_GetOSError();
|
||||
}
|
||||
return lib;
|
||||
}
|
||||
|
||||
#endif // XP_WIN
|
||||
|
Loading…
Reference in New Issue
Block a user