mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
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:
parent
77b198211c
commit
cb3fc3c51c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user