mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
examples/contextlost: Fix comments
This commit is contained in:
parent
85d172c673
commit
3060ad96f1
@ -104,7 +104,7 @@ func (g *Game) Update(screen *ebiten.Image) error {
|
|||||||
func (g *Game) Draw(screen *ebiten.Image) {
|
func (g *Game) Draw(screen *ebiten.Image) {
|
||||||
if g.lost {
|
if g.lost {
|
||||||
// When the context is lost, skip rendering. Usually this logic should not be required, but when the
|
// When the context is lost, skip rendering. Usually this logic should not be required, but when the
|
||||||
// context lost happens by the API explicitly, Draw can be called even after the data in GPU is
|
// context lost happens by the API explicitly, Draw can be called even after the data in GPU
|
||||||
// disappered.
|
// disappered.
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user