purego fix for ColorFromNormalized: Vector4 has to be passed as pointer (not by value)
This commit is contained in:
parent
b4d0c52dc9
commit
6c2499adff
1 changed files with 1 additions and 1 deletions
|
@ -2780,7 +2780,7 @@ func ColorNormalize(col color.RGBA) Vector4 {
|
||||||
|
|
||||||
// ColorFromNormalized - Get Color from normalized values [0..1]
|
// ColorFromNormalized - Get Color from normalized values [0..1]
|
||||||
func ColorFromNormalized(normalized Vector4) color.RGBA {
|
func ColorFromNormalized(normalized Vector4) color.RGBA {
|
||||||
ret := colorFromNormalized(*(*uintptr)(unsafe.Pointer(&normalized)))
|
ret := colorFromNormalized(uintptr(unsafe.Pointer(&normalized)))
|
||||||
return *(*color.RGBA)(unsafe.Pointer(&ret))
|
return *(*color.RGBA)(unsafe.Pointer(&ret))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue