From da42cf435221f4cd4a3ceb1145c7f46ec9f4d476 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Thu, 28 Feb 2008 16:09:02 +0000 Subject: [PATCH] Fixed a struct != null comparison. --- Source/OpenTK/Platform/Windows/WinGLContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/OpenTK/Platform/Windows/WinGLContext.cs b/Source/OpenTK/Platform/Windows/WinGLContext.cs index c93ee8a5..1052b078 100644 --- a/Source/OpenTK/Platform/Windows/WinGLContext.cs +++ b/Source/OpenTK/Platform/Windows/WinGLContext.cs @@ -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;