mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-30 10:12:59 +00:00
Bug 806301 - Fail early if creating an antialiased buffer will fail. Prevents assert in LLVM pipe. r=jgilbert
This commit is contained in:
parent
2dbcc0efd9
commit
f55b9ef43b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user