mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 750527 - Rebind program if current program is relinked - r=bjacob
This commit is contained in:
parent
cb02754ea9
commit
17d345849f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user