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.
This commit is contained in:
Stefanos A. 2013-11-07 18:42:17 +01:00
parent 29d8fc603b
commit 03c04fd308

View file

@ -322,8 +322,8 @@ namespace OpenTK.Graphics
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;
}