Help us test MDN's new front-end:


이 문서는 아직 자원 봉사자들이 한국어로 번역하지 않았습니다. 참여해서 번역을 마치도록 도와 주세요!
English (US)의 문서도 읽어보세요.

The WebGLRenderingContext.getExtension() method enables a WebGL extension.




A String for the name of the WebGL extension to enable.

Return value

A WebGL extension object, or null if name does not match (case-insensitive) to one of the strings in WebGLRenderingContext.getSupportedExtensions.


Once a WebGL extension is enabled, you are able to use the methods, properties or constants that this extension object provides.

var canvas = document.getElementById('canvas');
gl = canvas.getContext('webgl');


WebGL extensions

Extensions for the WebGL API are registered in the WebGL Extension Registry. The current extensions are:


Specification Status Comment
WebGL 1.0
The definition of 'WebGLRenderingContext.getExtension' in that specification.
Recommendation Initial definition.

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
getExtensionChrome Full support 9Edge Full support 12Firefox Full support 4IE Full support 11Opera Full support 12Safari Full support 5.1WebView Android Full support YesChrome Android Full support 25Edge Mobile Full support YesFirefox Android Full support YesOpera Android Full support 12Safari iOS Full support 8.1Samsung Internet Android Full support Yes


Full support  
Full support

See also

문서 태그 및 공헌자

이 페이지의 공헌자: mdnwebdocs-bot, fscholz, nmve
최종 변경자: mdnwebdocs-bot,