Open Bug 1954031 Opened 1 month ago Updated 20 days ago

WebGL2RenderingContext.bufferSubData: Argument 3 can't be a resizable ArrayBuffer or ArrayBufferView - for NON-length-tracking TypedArray

Categories

(Core :: Graphics: CanvasWebGL, defect)

Firefox 136
defect

Tracking

()

UNCONFIRMED

People

(Reporter: mcost45, Unassigned, NeedInfo)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0

Steps to reproduce:

Minimal repro - codepen (or use attached files):
https://codepen.io/mttrx/pen/wBvPZZj

  1. Create a resizable array buffer
  2. Create TypedArray on buffer, with fixed length (non-length-tracking)
  3. Create GL buffer
  4. Use TypedArray as source data for WebGL bufferSubData(target, offset, srcData)

Actual results:

Firefox throws:

WebGL2RenderingContext.bufferSubData: Argument 3 can't be a resizable ArrayBuffer or ArrayBufferView TypeError: WebGL2RenderingContext.bufferSubData: Argument 3 can't be a resizable ArrayBuffer or ArrayBufferView

Expected results:

BufferSubData call succeeds.

Chrome 134.0.6998.89 (64-bit) results:

"FIRST bufferSubData was successful (3 args)!"

The Bugbug bot thinks this bug should belong to the 'Core::Graphics: CanvasWebGL' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Graphics: CanvasWebGL
Product: Firefox → Core

The severity field is not set for this bug.
:jgilbert, could you have a look please?

For more information, please visit BugBot documentation.

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

Attachment

General

Created:
Updated:
Size: