Bug 750527 - Rebind program if current program is relinked - r=bjacob

This commit is contained in:
Jeff Gilbert 2012-05-30 17:00:38 -07:00
parent cb02754ea9
commit 17d345849f

View File

@ -3708,6 +3708,15 @@ WebGLContext::LinkProgram(WebGLProgram *program, ErrorResult& rv)
if (ok) {
bool updateInfoSucceeded = program->UpdateInfo();
program->SetLinkStatus(updateInfoSucceeded);
// Bug 750527
if (gl->WorkAroundDriverBugs() &&
updateInfoSucceeded &&
gl->Vendor() == gl::GLContext::VendorNVIDIA)
{
if (program == mCurrentProgram)
gl->fUseProgram(progname);
}
} else {
program->SetLinkStatus(false);