Skip to content

Commit

Permalink
graphics: Fix comments on ReplacePixels
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed Feb 16, 2020
1 parent 875a529 commit dc96d25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions image.go
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,9 @@ func (i *Image) Dispose() error {

// ReplacePixels replaces the pixels of the image with p.
//
// The given p must represent RGBA pre-multiplied alpha values. len(p) must equal to 4 * (image width) * (image height).
// The given p must represent RGBA pre-multiplied alpha values. len(p) must equal to 4 * (bounds width) * (bounds height).
//
// ReplacePixels may be slow (as for implementation, this calls glTexSubImage2D).
// ReplacePixels works on a sub-image.
//
// When len(p) is not appropriate, ReplacePixels panics.
//
Expand Down

0 comments on commit dc96d25

Please sign in to comment.