New issue
Advanced search Search tips

Issue 829632 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Feature

Blocked on:
issue 828262



Sign in to add a comment

Make WebGL back buffer clearing code work with half-float back buffers

Project Member Reported by kbr@chromium.org, Apr 6 2018

Issue description

In  Issue 828262  the implicit clearing code for WebGL is being improved to properly support using clearBufferfv to clear the color or depth buffer, clearBufferiv to clear the stencil buffer, and clearBufferfi to clear the depth and stencil buffers.

This code has some implicit assumptions that the color buffer's format is GL_RGB(A)8. With recent and somewhat experimental support for HDR, the color buffer might actually be 16-bit half-float. The code needs to be updated to work in this scenario.

There's another lurking problem in the code as currently written if the scissor test was enabled. This bug might be fixed in  Issue 828262 , but if not then that needs to be handled too: if the scissor test is enabled and the user calls e.g. clearBufferfv, we need to call ClearIfComposited for correctness before calling the real ClearBufferfv.

 

Comment 1 by kbr@chromium.org, Apr 6 2018

Status: Available (was: Untriaged)

Sign in to add a comment