You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: WebGL 2 is an extension to WebGL 1. The WebGL2RenderingContext interface implements all members of the WebGLRenderingContext interface. Some methods of the WebGL 1 context can accept additional values when used in a WebGL 2 context. You will find this info noted on the WebGL 1 reference pages.
It looks like for all methods that both WebGL 1 and 2 have, a single doc page under WebGLRenderingContext covers both versions, and doc pages under WebGL2RenderingContext don't exist at all except for things that are WebGL 2-specific.
The text was updated successfully, but these errors were encountered:
The problem seems to be the WebIDL includes statement, which specifically doesn't inherit. But apparently MDN doesn't create a separate link to the non-inherited method.
To fix this we would have to continue tracking the original class and use it when we generate the MDN link.
So either MDN is inconsistent here, or we have to dig into the algorithm they use to generate these pages (if that's how it works and its not manual). Worst case scenario we have to fix it manually by adding some exceptions while parsing the WebIDL, as we already do with many other things.
EDIT: For historic reference, f21a5dc is my incomplete attempt.
Describe the Bug
The "MDN Documentation" link for
WebGl2RenderingContext::get_parameter
goes to a 404 page.Steps to Reproduce
Expected Behavior
I expect the link to go to https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getParameter#webgl_2
Actual Behavior
The link goes to https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getParameter, which doesn't exist.
Additional Context
https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext says:
It looks like for all methods that both WebGL 1 and 2 have, a single doc page under WebGLRenderingContext covers both versions, and doc pages under WebGL2RenderingContext don't exist at all except for things that are WebGL 2-specific.
The text was updated successfully, but these errors were encountered: