Closed Bug 736205 Opened 13 years ago Closed 13 years ago

GLController.disposeGLContext never destroys the GL context

Categories

(Firefox for Android Graveyard :: General, defect)

ARM
Android
defect
Not set
normal

Tracking

(firefox13 affected, firefox14 fixed)

RESOLVED FIXED
Firefox 14
Tracking Status
firefox13 --- affected
firefox14 --- fixed

People

(Reporter: ajuma, Assigned: ajuma)

Details

Attachments

(1 file)

We're calling eglDestroyContext when mEGLContext is null, rather than when it's not null.
This fixes the null check, and also prevents us from releasing mEGLDisplay and mEGLConfig when destroying the context (since they're still perfectly usable, and if we needlessly release them here we'll have to recreate them later in provideEGLSurface() -- we weren't running into this before simply because the code wasn't being reached due to the backwards null check).
Attachment #606317 - Flags: review?(bgirard)
Comment on attachment 606317 [details] [diff] [review] Make GLController.disposeGLContext actually destroy the context. Nice find
Attachment #606317 - Flags: review?(bgirard) → review+
Target Milestone: --- → Firefox 14
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
tracking-fennec: ? → ---
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: