Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 03c04fd308556cf4a5aa5660f44f204642e9588d 1 parent 29d8fc6
@thefiddler authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/OpenTK/Graphics/GraphicsMode.cs
View
4 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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.