Bug 806301 - Fail early if creating an antialiased buffer will fail. Prevents assert in LLVM pipe. r=jgilbert

This commit is contained in:
Walter Litwinczyk 2014-08-21 14:59:25 -07:00
parent 2dbcc0efd9
commit f55b9ef43b

View File

@ -543,6 +543,9 @@ DrawBuffer::Create(GLContext* const gl,
return true;
}
if (caps.antialias && formats.samples == 0)
return false; // Can't create it
GLuint colorMSRB = 0;
GLuint depthRB = 0;
GLuint stencilRB = 0;