graphics: Kinder panic messages

This commit is contained in:
Hajime Hoshi 2016-05-08 04:43:43 +09:00
parent bbc2ad915a
commit 7f09402bd9

View File

@ -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