Bug 778765 - Work around nouveau driver bug by changing samples=1 to samples=0 - r=jgilbert

This commit is contained in:
Benoit Jacob 2012-08-03 11:08:11 -04:00
parent 3e2307c062
commit 1ec8a85786

View File

@ -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;