[webgl] OSMesa wrapping fails on Linux

RESOLVED DUPLICATE of bug 565417

Status

()

Core
Canvas: WebGL
RESOLVED DUPLICATE of bug 565417
8 years ago
6 years ago

People

(Reporter: Ilmari Heikkinen, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

8 years ago
Using libOSMesa software GL for WebGL doesn't work on Linux because

src/content/canvas/src/nsGLPbufferOSMESA.cpp:165
if (!mGLWrap.Init(GLES20Wrap::TRY_SOFTWARE_GL)) {

fails on Linux. TRY_SOFTWARE_GL seeks symbols named with a "mgl"-prefix, e.g. "mglActiveTexture". The Linux OSMesa uses the "gl"-prefix, so should use TRY_NATIVE_GL instead. A quick workaround is to try both:

if (!(mGLWrap.Init(GLES20Wrap::TRY_SOFTWARE_GL) || mGLWrap.Init(GLES20Wrap::TRY_NATIVE_GL))) {
(Reporter)

Comment 1

8 years ago
Created attachment 414960 [details] [diff] [review]
patch to glwrap.cpp

Uses "gl" on MOZ_X11, "mgl" otherwise.
(Reporter)

Updated

8 years ago
Attachment #414960 - Flags: review?(vladimir)

Updated

7 years ago
Flags: blocking1.9.2?
WebGL isn't on the 1.9.2 branch, so can't block there. ;)
Flags: blocking1.9.2?
Fixed since bug 565417 has been fixed.
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED

Updated

6 years ago
Resolution: FIXED → DUPLICATE
Duplicate of bug: 565417

Updated

6 years ago
Attachment #414960 - Flags: review?(vladimir)
You need to log in before you can comment on or make changes to this bug.