Closed Bug 531612 Opened 15 years ago Closed 14 years ago

[webgl] OSMesa wrapping fails on Linux

Categories

(Core :: Graphics: CanvasWebGL, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 565417

People

(Reporter: ilmari.heikkinen, Unassigned)

Details

Attachments

(1 file)

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))) {
Uses "gl" on MOZ_X11, "mgl" otherwise.
Attachment #414960 - Flags: review?(vladimir)
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
Closed: 14 years ago
Resolution: --- → FIXED
Resolution: FIXED → DUPLICATE
Attachment #414960 - Flags: review?(vladimir)
You need to log in before you can comment on or make changes to this bug.