зеркало из https://github.com/mozilla/pjs.git
Bug 720467 - Update comments, which I forgot to commit.
This commit is contained in:
Родитель
455d631b73
Коммит
0c6bd17aa9
|
@ -366,15 +366,19 @@ gfxPlatform::Shutdown()
|
|||
gPlatform->mFontPrefsObserver = nsnull;
|
||||
}
|
||||
|
||||
// Shut down the default GL context provider.
|
||||
mozilla::gl::GLContextProvider::Shutdown();
|
||||
|
||||
// We always have OSMesa at least potentially available; shut it down too.
|
||||
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.
|
||||
// The above shutdown calls operate on the available context providers on
|
||||
// most platforms. 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 the default GL provider on Windows; then, this
|
||||
// could go away. Unfortunately, we currently support WGL (the default) for
|
||||
// WebGL on Optimus.
|
||||
mozilla::gl::GLContextProviderEGL::Shutdown();
|
||||
#endif
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче