diff --git a/Zframework/image.lua b/Zframework/image.lua index 260b9c6b..7f541230 100644 --- a/Zframework/image.lua +++ b/Zframework/image.lua @@ -2,7 +2,6 @@ local IMG={} function IMG.init(list) IMG.init=nil - local null=love.graphics.newCanvas(1,1) setmetatable(IMG,{__index=function(self,name) if type(list[name])=='table'then self[name]={} @@ -13,7 +12,7 @@ function IMG.init(list) self[name]=love.graphics.newImage(list[name]) else LOG("No IMG: "..name) - self[name]=null + self[name]=PAPER end return self[name] end}) diff --git a/Zframework/init.lua b/Zframework/init.lua index 56b2d48f..a6a45a33 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -1,4 +1,4 @@ -NONE={}function NULL()end +NONE={}function NULL()end PAPER=love.graphics.newCanvas(1,1) EDITING="" LOADED=false diff --git a/main.lua b/main.lua index 809c5cd3..107802c0 100644 --- a/main.lua +++ b/main.lua @@ -116,7 +116,7 @@ MODES= require'parts.modes' setmetatable(TEXTURE,{__index=function(self,k) MES.new('warn',"No texture called: "..k) - self[k]=love.graphics.newCanvas(1,1) + self[k]=PAPER return self[k] end})