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

only use good shaders with good gpus

parent 08c87cfc
No related branches found
No related tags found
No related merge requests found
......@@ -41,10 +41,10 @@ function _M:init(name, args)
-- print("[SHADER] making shader from", name, " into ", self.totalname)
if args and args.require_shader then
if not core.shader.active(args.require_shader) then return end
if not core.shader.active(4) or not core.shader.active(args.require_shader) then return end
end
if args and args.require_kind then
if not core.shader.allow(args.require_kind) then return end
if not core.shader.active(4) or not core.shader.allow(args.require_kind) then return end
end
if not core.shader.active() then return end
......
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