Skip to content
Snippets Groups Projects
Commit c6d10a41 authored by DarkGod's avatar DarkGod
Browse files

strange saefty

parent 4a85c374
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,8 @@ function _M:loaded()
end
gl = gl or "particle"
if not __particles_gl[gl] then __particles_gl[gl] = core.display.loadImage("/data/gfx/"..gl..".png"):glTexture() end
if not __particles_gl[gl] then local s = core.display.loadImage("/data/gfx/"..gl..".png") if s then __particles_gl[gl] = s:glTexture() end end
if not __particles_gl[gl] then __particles_gl[gl] = core.display.loadImage("/data/gfx/particle.png"):glTexture() end
gl = __particles_gl[gl]
-- Zoom accordingly
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment