Bug 902462 - Enable SkiaGL on all GPUs, not just NVIDIA r=mattwoodrow

This commit is contained in:
James Willcox 2013-07-23 20:32:24 -04:00
parent dc4d4e8360
commit 292025f2d7

View File

@ -844,10 +844,7 @@ CanvasRenderingContext2D::EnsureTarget()
nsCOMPtr<nsIGfxInfo> gfxInfo = do_GetService("@mozilla.org/gfx/info;1");
nsString vendor;
if (!mForceSoftware &&
gfxInfo &&
NS_SUCCEEDED(gfxInfo->GetAdapterVendorID(vendor)) &&
StringBeginsWith(vendor, NS_LITERAL_STRING("NVIDIA")))
if (!mForceSoftware)
{
glContext = GLContextProvider::CreateOffscreen(gfxIntSize(size.width, size.height),
caps, GLContext::ContextFlagsNone);