Bug 1187048 - Code clean up around nsScreenGonk's EGLSurface handling r=mwu

This commit is contained in:
Sotaro Ikeda
2015-07-24 10:56:05 -07:00
parent 9826e44a6a
commit 94c1a83c68
8 changed files with 48 additions and 31 deletions

View File

@@ -167,6 +167,11 @@ CompositorOGL::CleanupResources()
if (!mGLContext)
return;
#ifdef MOZ_WIDGET_GONK
mWidget->SetNativeData(NS_NATIVE_OPENGL_CONTEXT,
reinterpret_cast<uintptr_t>(nullptr));
#endif
nsRefPtr<GLContext> ctx = mGLContext->GetSharedContext();
if (!ctx) {
ctx = mGLContext;