Bug 720467 - Shut down all the available GL context providers. r=jgilbert

This commit is contained in:
Joe Drew 2012-02-06 22:09:28 -05:00
parent 265d0f9331
commit 018b069130

View File

@ -367,6 +367,16 @@ gfxPlatform::Shutdown()
}
mozilla::gl::GLContextProvider::Shutdown();
mozilla::gl::GLContextProviderOSMesa::Shutdown();
#if defined(XP_WIN)
// The above shutdown call shuts down the default context provider for the
// platform. Windows is a "special snowflake", though, and has three context
// providers available, so we have to shut all of them down.
// We should only support one GL provider on Windows; then, this could go
// away. We currently support WGL for WebGL on Optimus.
mozilla::gl::GLContextProviderEGL::Shutdown();
#endif
delete gPlatform;
gPlatform = nsnull;