Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit cf4f564963b5494d71fc43c83435d998df6459f8 1 parent d1713ff
@andykorth authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 Source/OpenTK/Graphics/GraphicsModeComparer.cs
View
5 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
Please sign in to comment.
Something went wrong with that request. Please try again.