mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 720467 - Shut down all the available GL context providers. r=jgilbert
This commit is contained in:
parent
265d0f9331
commit
018b069130
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user