Closed
Bug 1243418
Opened 9 years ago
Closed 9 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•9 years ago
|
||
Attachment #8712720 -
Flags: review?(jgilbert)
Comment 2•9 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•9 years ago
|
Assignee: nobody → snorp
Comment 6•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
Comment 7•9 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
•