瀏覽代碼

Remove filename constructor;

bjorn 1 年之前
父節點
當前提交
28ca2ed094
共有 1 個文件被更改,包括 0 次插入4 次删除
  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][2] = t[b + 2]
       self[i][3] = t[b + 3]
       self[i][3] = t[b + 3]
     end
     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
   elseif type(t) == 'userdata' and t:type() == 'Texture' then
     tempPass = tempPass or lovr.graphics.newPass()
     tempPass = tempPass or lovr.graphics.newPass()
     tempBuffer = tempBuffer or lovr.graphics.newBuffer('vec4', 9)
     tempBuffer = tempBuffer or lovr.graphics.newBuffer('vec4', 9)