mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 777028 - honor gfx.work-around-driver-bugs for Mesa WebGL workaround - r=jgilbert
This commit is contained in:
parent
9c58fbf74c
commit
63c08f3f80
@ -3722,14 +3722,14 @@ WebGLContext::LinkProgram(WebGLProgram *program, ErrorResult& rv)
|
||||
|
||||
// bug 777028
|
||||
// Mesa can't handle more than 16 samplers per program, counting each array entry.
|
||||
if (mIsMesa) {
|
||||
if (program->UpperBoundNumSamplerUniforms() > 16) {
|
||||
GenerateWarning("Programs with more than 16 samplers are disallowed on Mesa drivers "
|
||||
"to avoid a Mesa crasher.");
|
||||
if (gl->WorkAroundDriverBugs() &&
|
||||
mIsMesa &&
|
||||
program->UpperBoundNumSamplerUniforms() > 16)
|
||||
{
|
||||
GenerateWarning("Programs with more than 16 samplers are disallowed on Mesa drivers " "to avoid a Mesa crasher.");
|
||||
program->SetLinkStatus(false);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
GLint ok;
|
||||
if (gl->WorkAroundDriverBugs() &&
|
||||
|
Loading…
Reference in New Issue
Block a user