Closed Bug 1301451 Opened 8 years ago Closed 4 years ago

Incorrect implementation defined pixel format and type reported for float renderbuffers and float textures.

Categories

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

51 Branch
x86_64
macOS
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jujjyl, Unassigned)

Details

(Whiteboard: gfx-noted)

Attachments

(2 files)

When a float renderbuffer is the active color render target in an FBO, GL_IMPLEMENTATION_COLOR_READ_TYPE and GL_IMPLEMENTATION_COLOR_READ_FORMAT return GL_UNSIGNED_BYTE+GL_RGBA, but attempting to glReadPixels() in that format generates an error.

Expected: Either the IMPLEMENTATION_COLOR_READ_* should return GL_FLOAT+GL_RGBA, or glReadPixels() should be able to read back in the format that is advertised.
Looks like the same thing occurs with 2D float textures in an FBO.
Tested on Nightly on OS X, though not sure if occurs on all OSes.
OS: Unspecified → Mac OS X
Hardware: Unspecified → x86_64
Version: unspecified → 51 Branch
Whiteboard: gfx-noted
Flags: needinfo?(jgilbert)

Works on my MBP.

Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(jgilbert)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: