Closed
Bug 1243418
Opened 8 years ago
Closed 8 years ago
Fix swapped boolean usage and interpretation in GLUploadHelpers::UploadImageDataToTexture
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: snorp, Assigned: snorp)
References
Details
Attachments
(1 file)
3.41 KB,
patch
|
jgilbert
:
review+
|
Details | Diff | Splinter Review |
The 'aOverwrite' argument, when true, is meant to indicate that you are uploading to a texture that already has data in it. Both the callers and implementation seem to have swapped that meaning.
Assignee | ||
Comment 1•8 years ago
|
||
Attachment #8712720 -
Flags: review?(jgilbert)
Comment 2•8 years ago
|
||
Comment on attachment 8712720 [details] [diff] [review] Fix up incorrect 'aOverwrite' usage and impl in GLUploadHelpers Review of attachment 8712720 [details] [diff] [review]: ----------------------------------------------------------------- The code is correct, but we should bother to clarify this, since it obviously wasn't clear enough before. ::: gfx/gl/GLUploadHelpers.cpp @@ +432,4 @@ > const nsIntRegion& aDstRegion, > GLuint& aTexture, > size_t* aOutUploadSize, > bool aOverwrite, Why don't we just call this aNeedsInit? Would that be clearer? ::: gfx/gl/TextureImageEGL.cpp @@ +213,5 @@ > aSurf, > region, > mTexture, > &uploadSize, > + mTextureState != Created, Pull this out into a named local, which should help with clarity here.
Attachment #8712720 -
Flags: review?(jgilbert) → review+
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → snorp
Comment 6•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/866edb59ba09
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
Comment 7•8 years ago
|
||
This seems to have caused a regression related to hidpi support on OS X; filed bug 1247272.
You need to log in
before you can comment on or make changes to this bug.
Description
•