mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +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()
|
imageM.Lock()
|
||||||
defer imageM.Unlock()
|
defer imageM.Unlock()
|
||||||
if imageCommandQueue != nil {
|
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() {
|
if i.isDisposed() {
|
||||||
return color.Transparent
|
return color.Transparent
|
||||||
|
Loading…
Reference in New Issue
Block a user