mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
Bug 1906155 - Add pref webgl.1.request_es2:true. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D215665
This commit is contained in:
parent
df4d12772d
commit
1d1e39564d
@ -315,8 +315,10 @@ bool WebGLContext::CreateAndInitGL(
|
||||
if (IsWebGL2()) {
|
||||
flags |= gl::CreateContextFlags::PREFER_ES3;
|
||||
} else {
|
||||
// Request and prefer ES2 context for WebGL1.
|
||||
flags |= gl::CreateContextFlags::PREFER_EXACT_VERSION;
|
||||
if (StaticPrefs::webgl_1_request_es2()) {
|
||||
// Request and prefer ES2 context for WebGL1.
|
||||
flags |= gl::CreateContextFlags::PREFER_EXACT_VERSION;
|
||||
}
|
||||
|
||||
if (!StaticPrefs::webgl_1_allow_core_profiles()) {
|
||||
flags |= gl::CreateContextFlags::REQUIRE_COMPAT_PROFILE;
|
||||
|
@ -16143,6 +16143,11 @@
|
||||
#endif
|
||||
mirror: always
|
||||
|
||||
- name: webgl.1.request_es2
|
||||
type: RelaxedAtomicBool
|
||||
value: true
|
||||
mirror: always
|
||||
|
||||
- name: webgl.angle.force-d3d11
|
||||
type: RelaxedAtomicBool
|
||||
value: false
|
||||
|
Loading…
Reference in New Issue
Block a user