forked from mirrors/gecko-dev
Bug 1883508 - Fix build errors in GLContextProviderEAGL.mm. r=gfx-reviewers,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D203524
This commit is contained in:
parent
5679e97f32
commit
284211b72b
2 changed files with 6 additions and 4 deletions
|
|
@ -23,7 +23,7 @@ class GLContextEAGL : public GLContext {
|
|||
public:
|
||||
MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(GLContextEAGL, override)
|
||||
GLContextEAGL(const GLContextDesc&, EAGLContext* context,
|
||||
GLContext* sharedContext, ContextProfile profile);
|
||||
GLContext* sharedContext);
|
||||
|
||||
~GLContextEAGL();
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
#include "GLContextProvider.h"
|
||||
#include "GLContextEAGL.h"
|
||||
#include "GLLibraryLoader.h"
|
||||
#include "nsDebug.h"
|
||||
#include "nsIWidget.h"
|
||||
#include "gfxFailure.h"
|
||||
|
|
@ -107,7 +108,7 @@ bool GLContextEAGL::IsCurrentImpl() const {
|
|||
|
||||
static PRFuncPtr GLAPIENTRY GetLoadedProcAddress(const char* const name) {
|
||||
PRLibrary* lib = nullptr;
|
||||
const auto& ret = PR_FindFunctionSymbolAndLibrary(name, &leakedLibRef);
|
||||
const auto& ret = PR_FindFunctionSymbolAndLibrary(name, &lib);
|
||||
if (lib) {
|
||||
PR_UnloadLibrary(lib);
|
||||
}
|
||||
|
|
@ -195,7 +196,7 @@ already_AddRefed<GLContext> GLContextProviderEAGL::CreateForCompositorWidget(
|
|||
already_AddRefed<GLContext> GLContextProviderEAGL::CreateHeadless(
|
||||
const GLContextCreateDesc& createDesc, nsACString* const out_failureId) {
|
||||
auto desc = GLContextDesc{createDesc};
|
||||
desc.isOffcreen = true;
|
||||
desc.isOffscreen = true;
|
||||
return CreateEAGLContext(desc, GetGlobalContextEAGL()).forget();
|
||||
}
|
||||
|
||||
|
|
@ -208,7 +209,8 @@ GLContext* GLContextProviderEAGL::GetGlobalContext() {
|
|||
|
||||
MOZ_RELEASE_ASSERT(!gGlobalContext,
|
||||
"GFX: Global GL context already initialized.");
|
||||
RefPtr<GLContext> temp = CreateHeadless(CreateContextFlags::NONE);
|
||||
nsCString discardFailureId;
|
||||
RefPtr<GLContext> temp = CreateHeadless({}, &discardFailureId);
|
||||
gGlobalContext = temp;
|
||||
|
||||
if (!gGlobalContext) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue