mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
Bug 1187174 - Use 'webgl2' not 'experimental-webgl2'. - r=kamidphish
This commit is contained in:
parent
36ac32cb02
commit
c047687d8f
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user