Closed Bug 1041237 Opened 10 years ago Closed 10 years ago

The bitmask enums flags calculation for getBitToEnumValue is flawed

Categories

(DevTools Graveyard :: Canvas Debugger, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 34

People

(Reporter: vporof, Assigned: vporof)

Details

Attachments

(1 file)

getBitToEnumValue("gl", ctx, ctx.TEXTURE_2D)
results in
"ONE | DEPTH_BUFFER_BIT | STENCIL_BUFFER_BIT | CW | CCW"
not
"TEXTURE_2D"

This happens most likely because a faulty regex.
Attached patch v1Splinter Review
Assignee: nobody → vporof
Status: NEW → ASSIGNED
Attachment #8459244 - Flags: review?(jsantell)
Comment on attachment 8459244 [details] [diff] [review]
v1

Review of attachment 8459244 [details] [diff] [review]:
-----------------------------------------------------------------

Nice catch!
Attachment #8459244 - Flags: review?(jsantell) → review+
https://hg.mozilla.org/mozilla-central/rev/7a250901c59d
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 34
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: