Bug 1922506: Request EGL if forbid hardware is true. r=jgilbert
On linux, X11 may be HW accelerated and we can't control what X11 is using (at least I couldn't find any way to do it), for that reason we attempt using EGL if software rendering is asked. Differential Revision: https://phabricator.services.mozilla.com/D226259
This commit is contained in:
@@ -35,7 +35,10 @@ already_AddRefed<GLContext> GLContextProviderLinux::CreateForCompositorWidget(
|
||||
/*static*/
|
||||
already_AddRefed<GLContext> GLContextProviderLinux::CreateHeadless(
|
||||
const GLContextCreateDesc& desc, nsACString* const out_failureId) {
|
||||
if (gfxVars::UseEGL()) {
|
||||
if (gfxVars::UseEGL() ||
|
||||
bool(desc.flags & CreateContextFlags::FORBID_HARDWARE)) {
|
||||
// We request EGL if software is required, because we don't know
|
||||
// what X11 is using. It could be software or hardware.
|
||||
return sGLContextProviderEGL.CreateHeadless(desc, out_failureId);
|
||||
#ifdef MOZ_X11
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user