Skip to content

Conversation

@Harish3005-cloud
Copy link
Contributor

@Harish3005-cloud Harish3005-cloud commented Dec 20, 2025

Description

Updated the WebGL2RenderingContext.bufferSubData() documentation to mark the srcData parameter as required.

Motivation

The previous documentation incorrectly listed srcData as optional. According to the WebGL specification, this parameter is mandatory for the method to function, as it provides the data to be written into the buffer. This change ensures developers provide the necessary arguments to avoid runtime errors.

Additional details

This correction was prompted by feedback from @AshleyScirra on a previous discussion/PR regarding the technical accuracy of WebGL buffer methods. Marking this as required aligns the MDN documentation with the actual WebGL 2 implementation and the Khronos specification.

Related issues and pull requests

Relates to #42315

@Harish3005-cloud Harish3005-cloud requested a review from a team as a code owner December 20, 2025 18:55
@Harish3005-cloud Harish3005-cloud requested review from sideshowbarker and removed request for a team December 20, 2025 18:55
@github-actions github-actions bot added Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed labels Dec 20, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 20, 2025

Preview URLs

(comment last updated: 2025-12-20 18:59:08)

Harish3005-cloud and others added 2 commits December 21, 2025 00:27
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@sideshowbarker sideshowbarker merged commit 0ce5f16 into mdn:main Dec 20, 2025
7 checks passed
wbamberg added a commit to wbamberg/content that referenced this pull request Dec 24, 2025
…skeys-guide

* origin/add-passkeys-guide:
  Clarify fetch() error handling behavior for Response (mdn#42497)
  Add code example to Closure glossary entry (mdn#42477)
  42252 add new relative units ff release (mdn#42470)
  Remove duplicated word (mdn#42496)
  42252 add new relative units (mdn#42469)
  TrustedTypes: Range.createContextualFragment() (mdn#42493)
  Fix CSS, HTML, and HTTP landing pages to match sidebar content and order (mdn#42460)
  TT: CSP trusted types/require-trusted... fixes (mdn#42461)
  Improve console output formatting in Recursion glossary (mdn#42478)
  Add Sec-CH-Width + consistency fixes (mdn#42453)
  webextensions/manifest.json/options_page: typo (mdn#42394)
  webextensions/api/tabs/onupdated: Fix section link (mdn#42393)
  fix: add missing closing parenthesis (mdn#42482)
  docs: mark srcData as required in bufferSubData (mdn#42483)
  docs(learn): remove invalid type attribute from video example (mdn#42479)
  Drop 'read-only' from role (mdn#42474)
  Fix: Update bufferSubData parameters to match WebGL 1 spec mdn#42315 (mdn#42411)
  chore: Replace links with `cssxref` macro in the learn area (mdn#42446)
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/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants