Permalink
Browse files

OpenTK issue 2550 and 2298, disabling Aero in windows 7.

  • Loading branch information...
1 parent d1713ff commit cf4f564963b5494d71fc43c83435d998df6459f8 @andykorth committed Jan 24, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 Source/OpenTK/Graphics/GraphicsModeComparer.cs
@@ -55,7 +55,10 @@ public int Compare(GraphicsMode x, GraphicsMode y)
result = x.Buffers.CompareTo(y.Buffers);
if (result != 0)
return result;
- return x.AccumulatorFormat.CompareTo(y.AccumulatorFormat);
+ result = x.AccumulatorFormat.CompareTo(y.AccumulatorFormat);
+ if (result != 0)
+ return result;
+ return ((int)(x.Index)).CompareTo((int)(y.Index));
}
#endregion

0 comments on commit cf4f564

Please sign in to comment.