summaryrefslogtreecommitdiff
path: root/demo/Matrix.lua
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-10-28 22:29:38 -0500
committersanine-a <sanine.not@pm.me>2020-10-28 22:29:38 -0500
commita9f0521984f43f3048d3e0fec15082916e7f8331 (patch)
tree298921a1bb16dca39664f460c60cb78b368b64c8 /demo/Matrix.lua
parentc6790ae7b77e32af33ab290ff6b645536b69210e (diff)
fix bug in model loading
Diffstat (limited to 'demo/Matrix.lua')
-rw-r--r--demo/Matrix.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/demo/Matrix.lua b/demo/Matrix.lua
index eae210f..d38b20b 100644
--- a/demo/Matrix.lua
+++ b/demo/Matrix.lua
@@ -47,7 +47,7 @@ end
Matrix.Mat3.prototype.mulv = function(self, v, dest)
local result
if dest == nil then
- result = Matrix.Mat3.new()
+ result = Matrix.Vec3.new()
else
result = dest
end
@@ -218,7 +218,7 @@ end
Matrix.Mat4.prototype.mulv = function(self, v, dest)
local result
if dest == nil then
- result = Matrix.Mat4.new()
+ result = Matrix.Vec4.new()
else
result = dest
end