This commit is contained in:
Igor Timofeev 2015-10-30 07:16:53 +03:00
parent fdee35a07f
commit 1e2fc094da

View File

@ -19,7 +19,6 @@ local libraries = {
["component"] = "component",
["unicode"] = "unicode",
["fs"] = "filesystem",
["libPNGImage"] = "libPNGImage",
["colorlib"] = "colorlib",
}
@ -269,6 +268,8 @@ end
----------------------------------- Все, что касается реального PNG-формата ------------------------------------------------------------
function image.loadPng(path)
if not _G.libPNGImage then _G.libPNGImage = require("libPNGImage") end
local success, pngImageOrErrorMessage = pcall(libPNGImage.newFromFile, path)
if not success then