mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 03:58:55 +01:00
restorable: Bug fix: Dispose should be deferred between frames
Updates #913
This commit is contained in:
parent
1a2a0aeb76
commit
4717baa840
@ -445,6 +445,7 @@ func (i *Image) readPixelsFromGPUIfNeeded() {
|
||||
// Note that this must not be called until context is available.
|
||||
func (i *Image) At(x, y int) (byte, byte, byte, byte) {
|
||||
// As this should not affect the information for restoring, this doesn't have to be deferred.
|
||||
// TODO: If there are deferred operations, At doesn't return the correct color. Fix this (#913).
|
||||
|
||||
w, h := i.image.Size()
|
||||
if x < 0 || y < 0 || w <= x || h <= y {
|
||||
|
Loading…
Reference in New Issue
Block a user