fixes obsolete draw event invocations
This commit is contained in:
parent
4496766996
commit
2175ec4953
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue