Permalink
Browse files

[OpenTK] Allow a GraphicsMode.Buffers value of 0

0 in this case means “don’t care”.
  • Loading branch information...
1 parent ff36f0f commit 6f3951e8251e3562f102a5c2ebc6e52683d76000 @thefiddler thefiddler committed Jan 22, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/OpenTK/Graphics/GraphicsMode.cs
@@ -43,7 +43,7 @@ internal GraphicsMode(GraphicsMode mode)
{
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;

0 comments on commit 6f3951e

Please sign in to comment.