Closed Bug 1560771 Opened 5 months ago Closed 3 months ago

gl.lineWidth not working with WebGL 2 context

Categories

(Core :: Canvas: WebGL, defect, P2)

67 Branch
defect

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: holger.seelig, Assigned: greyson.gilbert.oss)

Details

Attachments

(2 files)

Attached file WebGL2.html

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0

Steps to reproduce:

When creating a WebGL 2 context gl.lineWidth is not working, althougth gl.getParameter(gl.ALIASED_LINE_WIDTH_RANGE) reports a range of [1, 10].

A WebGL 1 context works properly. Also Chrome works properly.

Actual results:

The lineWidth is always 1

Expected results:

gl.lineWidth should operate in the range of gl.ALIASED_LINE_WIDTH_RANGE

Component: Untriaged → Canvas: WebGL
Product: Firefox → Core
Priority: -- → P2

Because glLineWidth is deprecated in newer versions of core opengl,
we currently ignore lineWidth when using core profile. We should
probably also make ALIASED_LINE_WIDTH_RANGE match this behavior to
lessen confusion.

Pushed by jgilbert@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3c3aa15207d5
Give proper line width range for core profile r=jgilbert
Status: UNCONFIRMED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
Assignee: nobody → greyson.gilbert.oss
Flags: qe-verify+

Hello, considering that glLineWidth is deprecated in newer versions of core opengl, what would be the steps to manually verify this bug?

Flags: needinfo?(jgilbert)

On a Mac or Linux machine, check about:support and verify that "WebGL 2 Driver Renderer" or "Version" has "Core" in it, and run the testcase.

Flags: needinfo?(jgilbert)
You need to log in before you can comment on or make changes to this bug.