Skip to content

Conversation

@Harish3005-cloud
Copy link

Removed WebGL 2 constants from target. Removed srcOffset and length parameters which are not supported in WebGL 1. Renamed dstByteOffset to offset.

Description

Updated the bufferSubData documentation for WebGLRenderingContext to accurately reflect the WebGL 1 specification. I removed parameters and constants that are only available in WebGL 2 and corrected a parameter name to match the method signature.

Motivation

The current documentation incorrectly lists srcOffset and length as parameters, but these are only supported in WebGL2RenderingContext. Additionally, the target parameter listed constants (like COPY_READ_BUFFER) that are not valid in a WebGL 1 context. This created confusion for developers using the WebGL 1 API.

Additional details

These changes align the documentation with the WebGL 1.0 Specification.

Related issues and pull requests

Fixes #42315

Related issues and pull requests

Removed WebGL 2 constants from target. Removed srcOffset and length parameters which are not supported in WebGL 1. Renamed dstByteOffset to offset.
@Harish3005-cloud Harish3005-cloud requested a review from a team as a code owner December 15, 2025 17:51
@Harish3005-cloud Harish3005-cloud requested review from hamishwillee and removed request for a team December 15, 2025 17:51
@github-actions github-actions bot added Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed labels Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WebGLRenderingContext bufferSubData documents too many parameters

1 participant