[Win] Fix issue #35 (OpenTK over Remote Desktop)
authorStefanos A. <stapostol@gmail.com>
Wed, 8 Jan 2014 23:14:25 +0000 (00:14 +0100)
committerStefanos A. <stapostol@gmail.com>
Wed, 8 Jan 2014 23:14:25 +0000 (00:14 +0100)
commit28ac3cec0b4cce7757c6e69fa2d1ac8033ea2093
tree72749c31a0662065c60244f9cf7c0a82d63da702
parent1b3b510376465136adba1e4e976762426be74260
[Win] Fix issue #35 (OpenTK over Remote Desktop)

When running over remote desktop without hardware acceleration, there
are no GraphicsModes that support desktop composition. This patch adds
logic to avoid requesting composition-capable modes when running over
RDP.

Additionally, it changes the mode selection logic to consider modes that
support features partially (e.g. 16bpp color instead of 32bpp), albeit
with a heavy penalty over fully supported modes.
Source/OpenTK/Platform/Windows/WinGraphicsMode.cs