зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1267100 - add makeCurrent() for WebGLContext::GetFramebufferAttachmentParameter(). r=jgilbert
This commit is contained in:
Родитель
934c852719
Коммит
dc3eae0de8
|
@ -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);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче