Bug fix: image comment

This commit is contained in:
Hajime Hoshi 2015-01-11 04:20:28 +09:00
parent 3b02993a5d
commit 0332b8d5ed

View File

@ -205,7 +205,7 @@ func (i *Image) ColorModel() color.Model {
// At returns the color of the image at (x, y). // 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 { func (i *Image) At(x, y int) color.Color {
if i.pixels == nil { if i.pixels == nil {
ui.Use(func(c *opengl.Context) { ui.Use(func(c *opengl.Context) {