зеркало из https://github.com/mozilla/pjs.git
Bug 764578 - WebGL context creation keeps failing after D3D device has been lost - r=jgilbert
This commit is contained in:
Родитель
f2b044b042
Коммит
0084eaa3e2
|
@ -2134,10 +2134,19 @@ GLContextProviderEGL::CreateForNativePixmapSurface(gfxASurface* aSurface)
|
|||
GLContext *
|
||||
GLContextProviderEGL::GetGlobalContext(const ContextFlags)
|
||||
{
|
||||
// Don't want a global context on Android as 1) share groups across 2 threads fail on many Tegra drivers (bug 759225)
|
||||
// and 2) some mobile devices have a very strict limit on global number of GL contexts (bug 754257)
|
||||
#ifdef MOZ_JAVA_COMPOSITOR
|
||||
return nsnull;
|
||||
#endif
|
||||
|
||||
// Don't want a global context on Windows as we don't use it for WebGL surface sharing and it makes
|
||||
// context creation fail after a context loss (bug 764578)
|
||||
#ifdef XP_WIN
|
||||
return nsnull;
|
||||
#endif
|
||||
|
||||
|
||||
static bool triedToCreateContext = false;
|
||||
if (!triedToCreateContext && !gGlobalContext) {
|
||||
triedToCreateContext = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче