Closed Bug 705002 Opened 13 years ago Closed 11 years ago

Fix OGL Layers for Windows

Categories

(Core :: Graphics, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED

People

(Reporter: jgilbert, Assigned: vlad)

References

Details

Attachments

(1 file)

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.
Depends on: 605808
No longer blocks: 701277
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 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 on attachment 765971 [details] [diff] [review]
small debug build fix

Oh, sorry. Operator priority is hard. On fridays.
Attachment #765971 - Flags: review- → review+
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.
pretty sure this got merged to m-c (but wrong bug #)
Status: NEW → RESOLVED
Closed: 11 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: