mirror of
https://github.com/lxsang/Diya-API.git
synced 2025-07-24 01:40:12 +02:00
Fix: incorrect index in buffer converting
This commit is contained in:
@ -5,7 +5,7 @@ MatrixTransform2x3 >> asGLBuffer [
|
|||||||
|buffer|
|
|buffer|
|
||||||
buffer := FFIExternalArray externalNewType: #float size: 9.
|
buffer := FFIExternalArray externalNewType: #float size: 9.
|
||||||
1 to: 6 do:[:i|
|
1 to: 6 do:[:i|
|
||||||
buffer at:1 put: (self at:i)].
|
buffer at:i put: (self at:i)].
|
||||||
buffer
|
buffer
|
||||||
at: 7 put: 0;
|
at: 7 put: 0;
|
||||||
at: 8 put: 0;
|
at: 8 put: 0;
|
||||||
|
Reference in New Issue
Block a user