Added thread-affinity checks to SDL2 renderer.

If a call is made into a graphics resource that has thread-affinity, from a thread other than the one that created the graphics device, an exception will now be thrown to make debugging easier.
This commit is contained in:
RoosterDragon
2015-05-20 20:52:02 +01:00
parent 4fa20e78fa
commit fc436f1aab
11 changed files with 145 additions and 40 deletions

View File

@@ -15,7 +15,7 @@ using SDL2;
namespace OpenRA.Platforms.Default
{
public class Sdl2Input
class Sdl2Input
{
MouseButton lastButtonBits = (MouseButton)0;