mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-10-25 17:10:25 +08:00
graphics: Make matrices faster
This commit is contained in:
@@ -231,7 +231,7 @@ func (p *programContext) begin() error {
|
||||
}
|
||||
|
||||
e := [4][5]float32{}
|
||||
es := p.colorM.Elements()
|
||||
es := p.colorM.UnsafeElements()
|
||||
for i := 0; i < 4; i++ {
|
||||
for j := 0; j < 5; j++ {
|
||||
e[i][j] = float32(es[i*affine.ColorMDim+j])
|
||||
|
||||
Reference in New Issue
Block a user