Bug 733665 - NS_ASSERTION failure when calling WebGL getExtension - r=jgilbert

This commit is contained in:
Benoit Jacob 2012-03-07 15:17:49 -05:00
parent b9061c1cf2
commit 1aec65946b

View File

@ -754,7 +754,7 @@ protected:
WebGL_MOZ_WEBGL_lose_context,
WebGLExtensionID_Max
};
nsCOMPtr<WebGLExtension> mEnabledExtensions[WebGLExtensionID_Max];
nsRefPtr<WebGLExtension> mEnabledExtensions[WebGLExtensionID_Max];
bool IsExtensionEnabled(WebGLExtensionID ext) const {
NS_ABORT_IF_FALSE(ext >= 0 && ext < WebGLExtensionID_Max, "bogus index!");
return mEnabledExtensions[ext] != nsnull;