mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 21:51:51 -10:00
Bug 1262757 - Use StaticRefPtr for the global context in GLContextProviderWGL, r=jrmuizel
MozReview-Commit-ID: COV0vvyFubo
This commit is contained in:
1 parent
3b9272b107
commit
754fcde4bf
1 file changed
+2
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user