Open Bug 1239005 Opened 10 years ago Updated 3 years ago

Resized WebGL backbuffer isn't scaled properly when displayed

Categories

(Core :: Graphics: CanvasWebGL, defect, P3)

defect

Tracking

()

People

(Reporter: eflores, Unassigned)

Details

(Whiteboard: [gfx-noted])

Attachments

(2 files)

Attached file testcase.html
When a WebGL canvas is larger than the maximum renderbuffer size, we downsize the renderbuffer until it fits within that maximum. It should be stretched to the original canvas size when it's displayed, but instead we get the downsized size. Testcase attached.
Does this still reproduce?
Component: Graphics → Canvas: WebGL
Flags: needinfo?(edwin)
Whiteboard: [gfx-noted]
Attached patch 1239005.patchSplinter Review
Yes, it does. Attached is a severely bitrotted patch I was working on, until I discovered that cairo doesn't like scaling by more than INT16_MAX(-ish), outputting nothing instead in the attached test case. I figured it's better to fail and show something tiny than not show anything at all, but maybe not?
Flags: needinfo?(edwin)
Assignee: edwin.bugs → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: