Closed Bug 623404 Opened 14 years ago Closed 14 years ago

even more misc webgl test fixes!

Categories

(Core :: Graphics: CanvasWebGL, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: vlad, Assigned: vlad)

Details

Attachments

(1 file)

Attached patch error fixesSplinter Review
Some things (correctly, grumble) changed from INVALID_OPERATION -> INVALID_VALUE...
Attachment #501518 - Flags: review?(bjacob)
Comment on attachment 501518 [details] [diff] [review]
error fixes

>-    if (stride & requiredAlignmentMask) {
>+    if (stride && stride & requiredAlignmentMask) {
>         return ErrorInvalidOperation("VertexAttribPointer: stride doesn't satisfy the alignment "
>                                      "requirement of given type");
>     }

Why is that needed? As far as I can see this doesn't make any difference?
Comment on attachment 501518 [details] [diff] [review]
error fixes

r+ if comment 1 is addressed.
Attachment #501518 - Flags: review?(bjacob) → review+
whoops, yes, leftover that I didn't clean up.  No need for stride &&.
http://hg.mozilla.org/mozilla-central/rev/e0c39c85ad47
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: