diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-05-09 00:14:59 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-05-09 00:14:59 -0400 |
commit | fa729fa70021106bfb8541695f5fb7c5654e31b7 (patch) | |
tree | 3685a74e16990082c38a0b26351a73dd9f2c4930 /src | |
parent | 486ac29796586e09540723dcae8070cf3e60285b (diff) | |
download | SMAPI-fa729fa70021106bfb8541695f5fb7c5654e31b7.tar.gz SMAPI-fa729fa70021106bfb8541695f5fb7c5654e31b7.tar.bz2 SMAPI-fa729fa70021106bfb8541695f5fb7c5654e31b7.zip |
don't try to recover from a completely broken sprite batch, which can cause a whole new set of problems (#283)
Diffstat (limited to 'src')
-rw-r--r-- | src/StardewModdingAPI/Framework/SGame.cs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/StardewModdingAPI/Framework/SGame.cs b/src/StardewModdingAPI/Framework/SGame.cs index 8786010e..b1ac7c58 100644 --- a/src/StardewModdingAPI/Framework/SGame.cs +++ b/src/StardewModdingAPI/Framework/SGame.cs @@ -990,14 +990,7 @@ namespace StardewModdingAPI.Framework if (Game1.spriteBatch.IsOpen(SGame.Reflection)) { this.Monitor.Log("Recovering sprite batch from error...", LogLevel.Trace); - try - { - Game1.spriteBatch.End(); - } - catch - { - Game1.spriteBatch = new SpriteBatch(this.GraphicsDevice); // sprite batch is broken, try replacing it - } + Game1.spriteBatch.End(); } } catch (Exception innerEx) |