Revert "shareable: Limit the texture size to 8192"

This reverts commit c92ccfff79.

Reason: This should no longer be needed after #1517 is fixed.
This commit is contained in:
Hajime Hoshi 2021-02-27 13:55:13 +09:00
parent 77b198211c
commit cb3fc3c51c

View File

@ -45,13 +45,6 @@ func max(a, b int) int {
return b
}
func min(a, b int) int {
if a < b {
return a
}
return b
}
func init() {
hooks.AppendHookOnBeforeUpdate(func() error {
backendsM.Lock()
@ -702,9 +695,7 @@ func BeginFrame() error {
panic("shareable: all the images must be not-shared before the game starts")
}
minSize = 1024
// The maximum size is 8192 no matter what the available sizes are (#1453).
maxSize = min(max(minSize, restorable.MaxImageSize()), 8192)
maxSize = max(minSize, restorable.MaxImageSize())
})
if err != nil {
return err