mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-03 14:34:26 +01:00
shareable: Bug fix: forceShared should allocate backend as shareable
This commit is contained in:
parent
8a221a5774
commit
0bf62f392f
@ -141,7 +141,7 @@ func (i *Image) ensureNotShared() {
|
|||||||
|
|
||||||
func (i *Image) forceShared() {
|
func (i *Image) forceShared() {
|
||||||
if i.backend == nil {
|
if i.backend == nil {
|
||||||
i.allocate(false)
|
i.allocate(true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user