Permalink
Browse files

Workaround for issues #4 and #6

GraphicsMode.Default used to be set to
(DisplayDevice.Default.BitsPerPixel, 16, 0, 0, 0, 2, false) for improved
compatibility with older systems. However, this appears to be causing
issues with specific modern GPUs. Switch the default mode to (32, 24, 8)
until a more proper solution can be found.
  • Loading branch information...
1 parent 29d8fc6 commit 03c04fd308556cf4a5aa5660f44f204642e9588d @thefiddler committed Nov 7, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/OpenTK/Graphics/GraphicsMode.cs
@@ -322,8 +322,8 @@ public static GraphicsMode Default
if (defaultMode == null)
{
Debug.Print("Creating default GraphicsMode ({0}, {1}, {2}, {3}, {4}, {5}, {6}).",
- DisplayDevice.Default.BitsPerPixel, 16, 0, 0, 0, 2, false);
- defaultMode = new GraphicsMode(DisplayDevice.Default.BitsPerPixel, 16, 0, 0, 0, 2, false);
+ 32, 24, 8, 0, 0, 2, false);
+ defaultMode = new GraphicsMode(32, 24, 8, 0, 0, 2, false);
}
return defaultMode;
}

0 comments on commit 03c04fd

Please sign in to comment.