mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-22 16:51:04 +00:00
[OpenTK] Allow a GraphicsMode.Buffers value of 0
0 in this case means “don’t care”.
This commit is contained in:
parent
ff36f0f35a
commit
6f3951e825
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue