Bug 1187174 - Use 'webgl2' not 'experimental-webgl2'. - r=kamidphish

This commit is contained in:
Jeff Gilbert 2015-07-27 12:10:17 -07:00
parent 36ac32cb02
commit c047687d8f
2 changed files with 1 additions and 7 deletions

View File

@ -73,12 +73,6 @@ WebGLUtil = (function() {
gl = canvas.getContext('webgl2');
} catch(e) {}
if (!gl) {
try {
gl = canvas.getContext('experimental-webgl2');
} catch(e) {}
}
if (!gl) {
todo(false, 'WebGL2 is not supported');
onFinished();

View File

@ -737,7 +737,7 @@ GetCanvasContextType(const nsAString& str, CanvasContextType* const out_type)
#endif
if (WebGL2Context::IsSupported()) {
if (str.EqualsLiteral("experimental-webgl2")) {
if (str.EqualsLiteral("webgl2")) {
*out_type = CanvasContextType::WebGL2;
return true;
}