зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 9600a4859665 (bug 1478454) for causing leaks
This commit is contained in:
Родитель
ea42facc77
Коммит
8fcdd0a73b
|
@ -962,9 +962,7 @@ GLContextGLX::FindFBConfigForWindow(Display* display, int screen, Window window,
|
||||||
if (!visid) {
|
if (!visid) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (sGLXLibrary.IsATI()) {
|
if (aWebRender || sGLXLibrary.IsATI()) {
|
||||||
// A workaround for ATI drivers introduced at Bug 572939.
|
|
||||||
// Do we still need that?
|
|
||||||
int depth;
|
int depth;
|
||||||
Visual* visual;
|
Visual* visual;
|
||||||
FindVisualAndDepth(display, visid, &visual, &depth);
|
FindVisualAndDepth(display, visid, &visual, &depth);
|
||||||
|
@ -975,8 +973,6 @@ GLContextGLX::FindFBConfigForWindow(Display* display, int screen, Window window,
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// WebRender compatible GLX visual is configured
|
|
||||||
// at nsWindow::Create(), just reuse it here.
|
|
||||||
if (windowVisualID == static_cast<VisualID>(visid)) {
|
if (windowVisualID == static_cast<VisualID>(visid)) {
|
||||||
*out_config = cfgs[i];
|
*out_config = cfgs[i];
|
||||||
*out_visid = visid;
|
*out_visid = visid;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче