mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 11:12:44 +01:00
shareable: Fix comments
This commit is contained in:
parent
15dcd5764d
commit
810dc33b4a
@ -112,8 +112,8 @@ func (s *Image) ensureNotShared() {
|
|||||||
// Put a random color pixel on newImg to make tests reliable.
|
// Put a random color pixel on newImg to make tests reliable.
|
||||||
//
|
//
|
||||||
// Of course this function works without this ReplacePixels,
|
// Of course this function works without this ReplacePixels,
|
||||||
// but the tests might pass even if there is a bug in DrawImage
|
// but the tests might pass without this even if there is a bug
|
||||||
// because of GPU memory cache.
|
// in DrawImage because of previous GPU memory state.
|
||||||
v := theRand.next()
|
v := theRand.next()
|
||||||
r, g, b := uint8(v>>24), uint8(v>>16), uint8(v>>8)
|
r, g, b := uint8(v>>24), uint8(v>>16), uint8(v>>8)
|
||||||
newImg.ReplacePixels([]byte{r, g, b, 0xff}, 0, 0, 1, 1)
|
newImg.ReplacePixels([]byte{r, g, b, 0xff}, 0, 0, 1, 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user