Closed Bug 1231832 Opened 6 years ago Closed 6 years ago

Deleting queries can crash if they haven't been used.

Categories

(Core :: Canvas: WebGL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla46
Tracking Status
firefox46 --- fixed

People

(Reporter: jrmuizel, Assigned: jrmuizel)

References

Details

(Whiteboard: [gfx-noted])

Attachments

(1 file)

No description provided.
Blocks: webgl2
Comment on attachment 8697577 [details] [diff] [review]
Make IsActive work on Querys that have not begun.

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

::: dom/canvas/WebGLQuery.cpp
@@ +45,5 @@
>  
> +        return targetSlot.get() == this;
> +    } else {
> +        return false;
> +    }

We generally prefer:
if (!HasEverBeenActive())
  return false;
...
Attachment #8697577 - Flags: review?(jgilbert) → review+
Whiteboard: [gfx-noted]
https://hg.mozilla.org/mozilla-central/rev/761059d108fc
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Assignee: nobody → jmuizelaar
You need to log in before you can comment on or make changes to this bug.