mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
Merge pull request #69 from RandolphBurt/MonoGameIOS
Ensured compatibility with MonoGame for iOS.
This commit is contained in:
commit
e112b98717
@ -76,6 +76,9 @@ namespace Spine {
|
||||
// Release the GPU back to drawing to the screen
|
||||
device.SetRenderTarget(null);
|
||||
|
||||
#if IOS
|
||||
return result as Texture2D;
|
||||
#else
|
||||
// RenderTarget2D are volatile and will be lost on screen resolution changes.
|
||||
// So instead of using this directly, we create a non-voliate Texture2D.
|
||||
// This is computationally slower, but should be safe as long as it is done
|
||||
@ -89,6 +92,7 @@ namespace Spine {
|
||||
result.Dispose();
|
||||
|
||||
return resultTexture;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user