Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGLRenderingContext.createBuffer() may return null. #33471

Open
jespertheend opened this issue May 7, 2024 · 0 comments
Open

WebGLRenderingContext.createBuffer() may return null. #33471

jespertheend opened this issue May 7, 2024 · 0 comments
Labels
Content:WebAPI Web API docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@jespertheend
Copy link
Contributor

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createBuffer

What specific section or headline is this issue about?

Return value

What information was incorrect, unhelpful, or incomplete?

The return value

What did you expect to see?

The fact that it may return null and preferably also why it may return null.

Do you have any supporting links, references, or citations?

The [WebGL specification](https://registry.khronos.org/webgl/specs/latest/1.0/#5.14.5:~:text=error%20is%20generated.-,WebGLBuffer%3F%20createBuffer(),-(OpenGL%20ES) only says:

WebGLBuffer? createBuffer()
Create a WebGLBuffer object and initialize it with a buffer object name as if by calling glGenBuffers.

It never mentions the reason for its return type and I couldn't find anything on the WebGL issue tracker either.

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@jespertheend jespertheend added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label May 7, 2024
@github-actions github-actions bot added the Content:WebAPI Web API docs label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
Development

No branches or pull requests

1 participant