Closed
Bug 1223486
Opened 8 years ago
Closed 8 years ago
WrapTexCoord(-1.0) returns 1.0 instead of 0.0
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla45
Tracking | Status | |
---|---|---|
firefox45 | --- | fixed |
People
(Reporter: kats, Assigned: kats)
References
Details
Attachments
(1 file, 2 obsolete files)
2.27 KB,
patch
|
kats
:
review+
|
Details | Diff | Splinter Review |
While working on getting Fennec passing tests with the C++ APZ Randall found what appears to be a bug in WrapTexCoord. Specifically when called with a negative whole number it returns 1.0 instead of 0.0. Patch attached, but after mxr'ing I see that there's another copy of this function in gfx/gl/DecomposeIntoNoRepeatTriangles.cpp which probably needs updating as well. Also I'm not sure why the code uses fmodf when it could be doing |return v - floorf(v)| which I think returns the same thing.
Assignee | ||
Updated•8 years ago
|
Component: Graphics: Layers → Graphics
Comment 1•8 years ago
|
||
Attachment #8685541 -
Attachment is obsolete: true
Assignee | ||
Updated•8 years ago
|
Attachment #8686746 -
Flags: review?(bas)
Assignee | ||
Comment 2•8 years ago
|
||
On IRC Bas gave an r+ to the floorf version that I suggested in comment 0, I'll steal this bug and update the patch.
Assignee: rbarker → bugmail.mozilla
Assignee | ||
Comment 3•8 years ago
|
||
Updated patch, carrying r+ from Bas on IRC
Attachment #8686746 -
Attachment is obsolete: true
Attachment #8686746 -
Flags: review?(bas)
Attachment #8689562 -
Flags: review+
Comment 5•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/1fdb5e461f10
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in
before you can comment on or make changes to this bug.
Description
•