Refresh rate may be zero - updated exception string.
This commit is contained in:
parent
9ccb301c04
commit
fac2251a81
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ namespace OpenTK.Graphics
|
|||
if (width <= 0) throw new ArgumentOutOfRangeException("width", "Must be greater than zero.");
|
||||
if (height <= 0) throw new ArgumentOutOfRangeException("height", "Must be greater than zero.");
|
||||
if (bitsPerPixel <= 0) throw new ArgumentOutOfRangeException("bitsPerPixel", "Must be greater than zero.");
|
||||
if (refreshRate < 0) throw new ArgumentOutOfRangeException("refreshRate", "Must be greater than zero.");
|
||||
if (refreshRate < 0) throw new ArgumentOutOfRangeException("refreshRate", "Must be greater than, or equal to zero.");
|
||||
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
|
|
Loading…
Reference in a new issue