Closed
Bug 705002
Opened 13 years ago
Closed 11 years ago
Fix OGL Layers for Windows
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
People
(Reporter: jgilbert, Assigned: vlad)
References
Details
Attachments
(1 file)
1.29 KB,
patch
|
bjacob
:
review+
|
Details | Diff | Splinter Review |
To my knowledge, there's no reason OGL Layers should fail to work properly on windows, since it should be readily cross-platform. I don't think we're likely to ever use it by default, since our D3D backend is much more reliable for most Windows machines, but it's a little worrisome that OGL Layers isn't working at all on Windows.
Assignee | ||
Comment 3•11 years ago
|
||
Seems to work fine; needs a small fix for debug builds, but otherwise comes up just fine.
Assignee: nobody → vladimir
Attachment #765971 -
Flags: review?(bjacob)
Comment 4•11 years ago
|
||
Comment on attachment 765971 [details] [diff] [review] small debug build fix Review of attachment 765971 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/gl/GLContext.cpp @@ +926,5 @@ > MOZ_ASSERT(caps.alpha == !!format.alpha); > + > + // These we either must have if they're requested, or > + // we can have if they're not. > + MOZ_ASSERT(caps.depth == !!format.depth || !caps.depth); This doesn't seem to do what the comment says: if caps.depth==false, and format.depth==0, the old assert used to pass, and the new one fails. Taking a step back, there is no chance that a boolean formula in 2 variables would need to mention one of the variables twice. The assert condition as currently written simplifies to: MOZ_ASSERT(!!format.depth && caps.depth);
Attachment #765971 -
Flags: review?(bjacob) → review-
Comment 5•11 years ago
|
||
Comment on attachment 765971 [details] [diff] [review] small debug build fix Oh, sorry. Operator priority is hard. On fridays.
Attachment #765971 -
Flags: review- → review+
Assignee | ||
Comment 6•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/1f72257122b5
Reporter | ||
Comment 7•11 years ago
|
||
Typo in the bug number, fwiw. Also, should we add a reftest (for webgl) for this? This would give us at least non-zero coverage.
Assignee | ||
Comment 8•11 years ago
|
||
pretty sure this got merged to m-c (but wrong bug #)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 9•11 years ago
|
||
Yep: https://hg.mozilla.org/mozilla-central/rev/1f72257122b5
You need to log in
before you can comment on or make changes to this bug.
Description
•