You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes the texture created for ShapeExtensions gets disposed when the application is pushed to the background. When the app comes back to the foreground, the shapes no longer draw properly (all black).
I can't find any method to clear the internal 1x1 texture to force it to regenerate it.
The text was updated successfully, but these errors were encountered:
It happens when the app on Android is not on the foreground, where the user is actively interacting with the app. The android activity may stop but the application is still running so dalvik (the android vm) will clear memory and the memory it clears may be the texture you wanted to keep alive.
MonoGame should be preventing this by default for it's android port. I am pretty sure this is a issue internally to MonoGame since I reviewed the MonoGame.Extended source just to see if this would happen to me and
shows that FillRectangle always calls that method resulting in a null check for _whitePixelTexture in which the _whitePixelTexture is then created again.
I should note, I don't use MonoGame. I use the fork which is preferable for me considering the 600+ issues in the MonoGame repo.
Sometimes the texture created for ShapeExtensions gets disposed when the application is pushed to the background. When the app comes back to the foreground, the shapes no longer draw properly (all black).
I can't find any method to clear the internal 1x1 texture to force it to regenerate it.
The text was updated successfully, but these errors were encountered: