Closed Bug 989575 Opened 10 years ago Closed 10 years ago

Drawing with a null-program should generate INVALID_OPERATION

Categories

(Core :: Graphics: CanvasWebGL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla31

People

(Reporter: jgilbert, Assigned: jgilbert)

References

Details

Attachments

(3 files)

Chrome does this, and it's the sensible thing to do.
However, GLES2 specs that this is undefined, and the WebGL spec doesn't modify this. I just submitted a PR that should change this, though.
Attached file testcase
Doing the test first. Patch shortly.
Attachment #8398870 - Flags: review?(dglastonbury)
Attached patch pach 1: Fix itSplinter Review
Attachment #8398871 - Flags: review?(dglastonbury)
Tested locally.
Attachment #8398871 - Flags: review?(dglastonbury) → review+
Attachment #8398870 - Flags: review?(dglastonbury) → review+
https://hg.mozilla.org/mozilla-central/rev/d6cc71f25341
https://hg.mozilla.org/mozilla-central/rev/373d0de60490
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: