Bug 1267100 - add makeCurrent() for WebGLContext::GetFramebufferAttachmentParameter(). r=jgilbert

This commit is contained in:
JerryShih
2016-04-27 18:58:47 +02:00
parent 59cb658599
commit dba5aca856

View File

@@ -746,6 +746,8 @@ WebGLContext::GetFramebufferAttachmentParameter(JSContext* cx,
MOZ_CRASH("Bad target."); MOZ_CRASH("Bad target.");
} }
MakeContextCurrent();
if (fb) if (fb)
return fb->GetAttachmentParameter(funcName, cx, target, attachment, pname, &rv); return fb->GetAttachmentParameter(funcName, cx, target, attachment, pname, &rv);