mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-26 18:52:44 +01:00
graphics: Remove wrong comments
This commit is contained in:
parent
02bf986049
commit
9d25a5f785
6
image.go
6
image.go
@ -302,9 +302,6 @@ type DrawImageOptions struct {
|
||||
// NewImage returns an empty image.
|
||||
//
|
||||
// NewImage generates a new texture and a new framebuffer.
|
||||
// Be careful that image objects will never be released
|
||||
// even though nothing refers the image object and GC works.
|
||||
// It is because there is no way to define finalizers for Go objects if you use GopherJS.
|
||||
//
|
||||
// This function is concurrent-safe.
|
||||
func NewImage(width, height int, filter Filter) (*Image, error) {
|
||||
@ -344,9 +341,6 @@ func NewImage(width, height int, filter Filter) (*Image, error) {
|
||||
// NewImageFromImage creates a new image with the given image (img).
|
||||
//
|
||||
// NewImageFromImage generates a new texture and a new framebuffer.
|
||||
// Be careful that image objects will never be released
|
||||
// even though nothing refers the image object and GC works.
|
||||
// It is because there is no way to define finalizers for Go objects if you use GopherJS.
|
||||
//
|
||||
// This function is concurrent-safe.
|
||||
func NewImageFromImage(img image.Image, filter Filter) (*Image, error) {
|
||||
|
Loading…
Reference in New Issue
Block a user