Bug 778765 - Work around nouveau driver bug by changing samples=1 to samples=0 - r=jgilbert, a=lsblakk
--- a/gfx/gl/GLContext.cpp
+++ b/gfx/gl/GLContext.cpp
@@ -1303,16 +1303,21 @@ GLContext::ChooseGLFormats(ContextFormat
GLsizei samples = aCF.samples;
GLsizei maxSamples = 0;
if (SupportsFramebufferMultisample())
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;
const int depth = aCF.depth;
const int stencil = aCF.stencil;
const bool useDepthStencil =
!mIsGLES2 || IsExtensionSupported(OES_packed_depth_stencil);