fixes obsolete draw event invocations

This commit is contained in:
Zoryn Aaron 2016-03-28 22:13:52 -04:00
parent 4496766996
commit 2175ec4953
1 changed files with 5 additions and 2 deletions

View File

@ -1250,10 +1250,13 @@ namespace StardewModdingAPI.Inheritance
{ {
farmEvent?.drawAboveEverything(spriteBatch); farmEvent?.drawAboveEverything(spriteBatch);
} }
GraphicsEvents.InvokeDrawTick();
GraphicsEvents.InvokeDrawInRenderTargetTick();
GraphicsEvents.InvokeOnPostRenderEvent(null, EventArgs.Empty); GraphicsEvents.InvokeOnPostRenderEvent(null, EventArgs.Empty);
spriteBatch.End(); spriteBatch.End();
GraphicsEvents.InvokeDrawTick();
GraphicsEvents.InvokeDrawInRenderTargetTick();
if (!ZoomLevelIsOne) if (!ZoomLevelIsOne)
{ {
GraphicsDevice.SetRenderTarget(null); GraphicsDevice.SetRenderTarget(null);