Bug 1262757 - Use StaticRefPtr for the global context in GLContextProviderWGL, r=jrmuizel

MozReview-Commit-ID: COV0vvyFubo
This commit is contained in:
Peter Chang committed 2016-04-01 16:17:36 +08:00
1 parent 3b9272b107
commit 754fcde4bf
1 file changed
+2 -1
+2 -1
View File
@@ -16,6 +16,7 @@
#include "prenv.h"
#include "mozilla/Preferences.h"
#include "mozilla/StaticPtr.h"
namespace mozilla {
namespace gl {
@@ -687,7 +688,7 @@ GLContextProviderWGL::CreateOffscreen(const IntSize& size,
return gl.forget();
}
static RefPtr<GLContextWGL> gGlobalContext;
static StaticRefPtr<GLContextWGL> gGlobalContext;
/*static*/ GLContext*
GLContextProviderWGL::GetGlobalContext()