Bläddra i källkod

Remove filename constructor;

bjorn 1 år sedan
förälder
incheckning
28ca2ed094
1 ändrade filer med 0 tillägg och 4 borttagningar
  1. 0 4
      shh.lua

+ 0 - 4
shh.lua

@@ -42,10 +42,6 @@ function SH:set(t)
       self[i][2] = t[b + 2]
       self[i][3] = t[b + 3]
     end
-  elseif type(t) == 'string' then
-    local texture = lovr.graphics.newTexture(t, { usage = { 'storage' } })
-    self:set(texture)
-    texture:release()
   elseif type(t) == 'userdata' and t:type() == 'Texture' then
     tempPass = tempPass or lovr.graphics.newPass()
     tempBuffer = tempBuffer or lovr.graphics.newBuffer('vec4', 9)