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

This commit is contained in:
JerryShih 2016-04-27 18:58:47 +02:00
Родитель 934c852719
Коммит dc3eae0de8
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

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