Closed Bug 1524804 (webgl1-es2) Opened 6 years ago Closed 6 years ago

WebGL 1 requires ES2 (not ES3) for some extensions

Categories

(Core :: Graphics: CanvasWebGL, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: jgilbert, Assigned: jgilbert)

References

Details

(Whiteboard: gfx-noted)

Attachments

(1 file)

We ask for ES2 on Android, but drivers often give us ES3, which is unfortunately legal.
We might be able to manually select an EGLConfig that supports ES2 but not ES3, and get ES2 that way.

Alias: webgl1-es2
Blocks: 1516102

Specifically, this is required because ANGLE can't translate ESSL1+extensions shaders into ESSL3. Otherwise we'd prefer ES3 everywhere.

See Also: → 1491221

It doesn't seem possible to request ES2 instead of ES3 on Android:
https://jdashg.github.io/misc/misc.html#gles2-on-android

I don’t see a way to get ES2 if the device offers ES3. The only thing I can think of is to manually search for EGLConfigs where either RENDERABLE_TYPE or CONFORMANT is missing the EGL_OPENGL_ES3_BIT bit. However, I dumped the configs in Fennec, and they’re all the same for those[.]

EGL_RENDERABLE_TYPE: 0x45 (EGL_OPENGL_ES_BIT | EGL_OPENGL_ES2_BIT | EGL_OPENGL_ES3_BIT)
EGL_CONFORMANT: 0x45 (EGL_OPENGL_ES_BIT | EGL_OPENGL_ES2_BIT | EGL_OPENGL_ES3_BIT)
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
See Also: → webgl1-es3
Summary: WebGL requires ES2 (not ES3) → WebGL 1 requires ES2 (not ES3) for some extensions

We need to mark affected extensions as disabled on ES3.

Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Pushed by jgilbert@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e0b2c90c9792 Some webglsl1/essl1 exts can't be implemented on es3 contexts. r=lsalzman
Status: REOPENED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: