mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 778765 - Work around nouveau driver bug by changing samples=1 to samples=0 - r=jgilbert
This commit is contained in:
parent
3e2307c062
commit
1ec8a85786
@ -1333,6 +1333,11 @@ GLContext::ChooseGLFormats(ContextFormat& aCF, ColorByteOrder aByteOrder)
|
||||
fGetIntegerv(LOCAL_GL_MAX_SAMPLES, (GLint*)&maxSamples);
|
||||
samples = NS_MIN(samples, maxSamples);
|
||||
|
||||
// bug 778765
|
||||
if (WorkAroundDriverBugs() && samples == 1) {
|
||||
samples = 0;
|
||||
}
|
||||
|
||||
formats.samples = samples;
|
||||
aCF.samples = samples;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user