mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
graphics: Kinder panic messages
This commit is contained in:
parent
bbc2ad915a
commit
7f09402bd9
2
image.go
2
image.go
@ -188,7 +188,7 @@ func (i *Image) At(x, y int) color.Color {
|
||||
imageM.Lock()
|
||||
defer imageM.Unlock()
|
||||
if imageCommandQueue != nil {
|
||||
panic("ebiten: At can't be called when the GL context is not initialized")
|
||||
panic("ebiten: At can't be called when the GL context is not initialized (this panic happens as of version 1.4.0-alpha)")
|
||||
}
|
||||
if i.isDisposed() {
|
||||
return color.Transparent
|
||||
|
Loading…
Reference in New Issue
Block a user