[OpenTK] Allow a GraphicsMode.Buffers value of 0

0 in this case means “don’t care”.
This commit is contained in:
thefiddler 2014-01-22 10:48:40 +01:00
parent ff36f0f35a
commit 6f3951e825

View file

@ -43,7 +43,7 @@ namespace OpenTK.Graphics
{
if (depth < 0) throw new ArgumentOutOfRangeException("depth", "Must be greater than, or equal to zero.");
if (stencil < 0) throw new ArgumentOutOfRangeException("stencil", "Must be greater than, or equal to zero.");
if (buffers <= 0) throw new ArgumentOutOfRangeException("buffers", "Must be greater than zero.");
if (buffers < 0) throw new ArgumentOutOfRangeException("buffers", "Must be greater than, or equal to zero.");
if (samples < 0) throw new ArgumentOutOfRangeException("samples", "Must be greater than, or equal to zero.");
this.Index = index;