graphics: Reduce a space line

This commit is contained in:
Hajime Hoshi 2016-06-05 03:17:24 +09:00
parent e5965d7771
commit 1ccdfd9a35

View File

@ -250,7 +250,6 @@ func (i *imageImpl) Fill(clr color.Color) error {
return nil return nil
} }
return f() return f()
} }
func (i *imageImpl) DrawImage(image *Image, options *DrawImageOptions) error { func (i *imageImpl) DrawImage(image *Image, options *DrawImageOptions) error {
@ -305,7 +304,10 @@ func (i *imageImpl) DrawImage(image *Image, options *DrawImageOptions) error {
} }
i.pixels = nil i.pixels = nil
mode := opengl.CompositeMode(options.CompositeMode) mode := opengl.CompositeMode(options.CompositeMode)
return i.framebuffer.DrawTexture(ui.GLContext(), image.impl.texture, vertices[:16*n], geom, colorm, mode) if err := i.framebuffer.DrawTexture(ui.GLContext(), image.impl.texture, vertices[:16*n], geom, colorm, mode); err != nil {
return err
}
return nil
} }
if theDelayedImageTasks.add(f) { if theDelayedImageTasks.add(f) {
return nil return nil