mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 11:12:44 +01:00
Bug fix: image comment
This commit is contained in:
parent
35288e3c94
commit
993cdcc442
2
image.go
2
image.go
@ -205,7 +205,7 @@ func (i *Image) ColorModel() color.Model {
|
||||
|
||||
// At returns the color of the image at (x, y).
|
||||
//
|
||||
// This method loads pixels from GPU to VRAM if necessary.
|
||||
// This method loads pixels from VRAM to system memory if necessary.
|
||||
func (i *Image) At(x, y int) color.Color {
|
||||
if i.pixels == nil {
|
||||
ui.Use(func(c *opengl.Context) {
|
||||
|
Loading…
Reference in New Issue
Block a user