Fixed a struct != null comparison.

This commit is contained in:
the_fiddler 2008-02-28 16:09:02 +00:00
parent 1d3c358512
commit da42cf4352

View file

@ -292,7 +292,7 @@ namespace OpenTK.Platform.Windows
pixelFormat.BlueBits = (byte)format.ColorFormat.Blue;
pixelFormat.AlphaBits = (byte)format.ColorFormat.Alpha;
if (format.AccumulatorFormat != null)
if (format.AccumulatorFormat.BitsPerPixel > 0)
{
pixelFormat.AccumBits = (byte)(format.AccumulatorFormat.Red + format.AccumulatorFormat.Green + format.AccumulatorFormat.Blue);
pixelFormat.AccumRedBits = (byte)format.AccumulatorFormat.Red;