fixes obsolete draw event invocations
This commit is contained in:
parent
4496766996
commit
2175ec4953
|
@ -1250,10 +1250,13 @@ namespace StardewModdingAPI.Inheritance
|
|||
{
|
||||
farmEvent?.drawAboveEverything(spriteBatch);
|
||||
}
|
||||
GraphicsEvents.InvokeDrawTick();
|
||||
GraphicsEvents.InvokeDrawInRenderTargetTick();
|
||||
|
||||
GraphicsEvents.InvokeOnPostRenderEvent(null, EventArgs.Empty);
|
||||
spriteBatch.End();
|
||||
|
||||
GraphicsEvents.InvokeDrawTick();
|
||||
GraphicsEvents.InvokeDrawInRenderTargetTick();
|
||||
|
||||
if (!ZoomLevelIsOne)
|
||||
{
|
||||
GraphicsDevice.SetRenderTarget(null);
|
||||
|
|
Loading…
Reference in New Issue