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:
@@ -16,7 +16,7 @@ namespace OpenRA.Platforms.Null
|
||||
{
|
||||
public sealed class NullGraphicsDevice : IGraphicsDevice
|
||||
{
|
||||
public Size WindowSize { get; internal set; }
|
||||
public Size WindowSize { get; private set; }
|
||||
|
||||
public NullGraphicsDevice(Size size, WindowMode window)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user